Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Delete(ctx context.Context, path string, response interface{}) error
- func (c *Client) Get(ctx context.Context, path string, response interface{}) error
- func (c *Client) Post(ctx context.Context, path string, request interface{}, response interface{}) error
- func (c *Client) Put(ctx context.Context, path string, request interface{}, response interface{}) error
- type Options
- type SuccessResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
View Source
var ErrUnsuccessfulResponse = errors.New("API returned an unsuccessful response. Check the API logs for more details")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type SuccessResponse ¶
type SuccessResponse struct {
Success bool `json:"success"`
}
Click to show internal directories.
Click to hide internal directories.