Versions in this module Expand all Collapse all v2 v2.11.1 Mar 31, 2024 v2.11.0 Mar 31, 2024 Changes in this version + type Client struct + func NewClient(endpointURL *url.URL, opts ...Option) *Client + func (c *Client) Get(ctx context.Context, apiMethod string, params url.Values, result interface{}) (err error) + func (c *Client) Post(ctx context.Context, apiMethod string, body, result interface{}) (err error) + type CredentialProvider interface + ApiKey func() string + SecretKey func() string + type Credentials struct + ApiKeyValue string + SecretKeyValue string + func (c *Credentials) ApiKey() string + func (c *Credentials) SecretKey() string + type EnvironmentCredentials struct + ApiKeyName string + SecretKeyName string + func (c *EnvironmentCredentials) ApiKey() string + func (c *EnvironmentCredentials) SecretKey() string + type Option func(opts *clientOptions) + func WithCredentialProvider(c CredentialProvider) Option + func WithDecoderFactory(f transport.DecoderFactory) Option + func WithEncoderFactory(f transport.EncoderFactory) Option + func WithHttpClient(c *http.Client) Option + type ResponseError struct + Status string + StatusCode int + func (e *ResponseError) Error() string