Versions in this module Expand all Collapse all v0 v0.1.0 May 20, 2021 Changes in this version + const BaseURLV3 + func ExponentialJitterBackoff(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration + func Hmac256Signer(publicKey, secret string, body []byte) (string, error) + func LinearJitterBackoff(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration + type Backoff func(min, max time.Duration, attemptNum int, resp *http.Response) time.Duration + type Client interface + Call func(method string, params, result interface{}) error + CallWithContext func(ctx context.Context, method string, params, result interface{}) error + func New(config *Config) Client + type Config struct + BaseURL string + Logger Logger + RetryMax int + RetryWaitMax time.Duration + RetryWaitMin time.Duration + func NewConfig(publicKey, secret string) *Config + type LogLevel uint32 + const DebugLevel + const ErrorLevel + const InfoLevel + const WarningLevel + func (l LogLevel) String() string + type Logger interface + Logf func(level LogLevel, format string, args ...interface{}) + func NewDefaultLogger(level LogLevel) Logger + func NewNullLogger() Logger + type LoggerFunc func(level LogLevel, format string, args ...interface{}) + func (f LoggerFunc) Logf(level LogLevel, format string, args ...interface{}) + type Signer func(publicKey, secret string, body []byte) (string, error)