Documentation ¶ Index ¶ type APIClient func (c *APIClient) Do(req *http.Request, v interface{}) error func (c *APIClient) NewRequest(ctx context.Context, method, endpoint string, body interface{}) (*http.Request, error) type HTTPError func (e HTTPError) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type APIClient ¶ type APIClient struct { L log.Logger C *http.Client } func (*APIClient) Do ¶ func (c *APIClient) Do(req *http.Request, v interface{}) error func (*APIClient) NewRequest ¶ func (c *APIClient) NewRequest(ctx context.Context, method, endpoint string, body interface{}) (*http.Request, error) type HTTPError ¶ type HTTPError struct { Body []byte Status int } func (HTTPError) Error ¶ func (e HTTPError) Error() string Source Files ¶ View all Source files http.go Click to show internal directories. Click to hide internal directories.