Documentation ¶ Index ¶ type APIError func (e *APIError) Error() string type Client func New(cfg Config) (*Client, error) func (c *Client) DoJSON(ctx context.Context, path string, query url.Values, headers map[string]string, ...) error type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type APIError ¶ type APIError struct { StatusCode int Message string } func (*APIError) Error ¶ func (e *APIError) Error() string type Client ¶ type Client struct { // contains filtered or unexported fields } func New ¶ func New(cfg Config) (*Client, error) func (*Client) DoJSON ¶ func (c *Client) DoJSON(ctx context.Context, path string, query url.Values, headers map[string]string, out any) error type Config ¶ type Config struct { BaseURL string Timeout time.Duration UserAgent string AuthHeader string MinInterval time.Duration MaxRetries int ResponseSize int64 HTTPClient *http.Client AllowHTTP bool AllowPrivateHosts bool } Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.