Documentation ¶ Index ¶ type Client func NewClient(baseUrl string, client *http.Client) *Client func (c *Client) Do(ctx context.Context, method string, path string, body any, out any, ...) error func (c *Client) Refresh(ctx context.Context) error type ErrorResponse type HTTPError func (e *HTTPError) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func NewClient ¶ func NewClient(baseUrl string, client *http.Client) *Client func (*Client) Do ¶ func (c *Client) Do( ctx context.Context, method string, path string, body any, out any, protected bool, ) error func (*Client) Refresh ¶ func (c *Client) Refresh(ctx context.Context) error type ErrorResponse ¶ type ErrorResponse struct { Error string `json:"error"` } type HTTPError ¶ type HTTPError struct { Status int Body string } func (*HTTPError) Error ¶ func (e *HTTPError) Error() string Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.