Merge pull request #513 from nspcc-dev/feat/rpc_param

This PR does 3 things:

    adds array parameter unmarshalling
    extend Param with convenient methods
    refactor tests into using tables to make it easier add new tests

(part of #347 solution)
This commit is contained in:
Roman Khimov 2019-11-22 18:47:59 +03:00 committed by GitHub
commit ea9bc22510
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 650 additions and 465 deletions

View file

@ -18,7 +18,7 @@ import (
"github.com/pkg/errors"
)
var (
const (
defaultDialTimeout = 4 * time.Second
defaultRequestTimeout = 4 * time.Second
defaultClientVersion = "2.0"
@ -78,7 +78,6 @@ func NewClient(ctx context.Context, endpoint string, opts ClientOptions) (*Clien
// TODO(@antdm): Enable SSL.
if opts.Cert != "" && opts.Key != "" {
}
if opts.Client.Timeout == 0 {