Documentation ¶ Index ¶ type APIError func (e *APIError) Error() string type Client func New(base string, opts ...Option) *Client func (c *Client) Do(ctx context.Context, method, path string, in any, out any) error func (c *Client) SetAuth(authFunc func(r *http.Request)) type Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type APIError ¶ type APIError struct { Status int Body string RetryAfter string } func (*APIError) Error ¶ func (e *APIError) Error() string type Client ¶ type Client struct { // contains filtered or unexported fields } func New ¶ func New(base string, opts ...Option) *Client func (*Client) Do ¶ func (c *Client) Do(ctx context.Context, method, path string, in any, out any) error func (*Client) SetAuth ¶ func (c *Client) SetAuth(authFunc func(r *http.Request)) SetAuth allows setting the auth function after client creation type Option ¶ type Option func(*Client) Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.