Documentation ¶
Overview ¶
Package dimension provides an HTTP client for the Cantabular Dimension API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Area ¶ added in v2.124.0
type Area struct { ID string `json:"id"` Label string `json:"label"` AreaType string `json:"area_type"` }
Area is an area model with ID and Label
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Cantabular Dimension API client
func NewWithHealthClient ¶
NewWithHealthClient creates a new instance of Client, reusing the URL and Clienter from the provided health check client
func (*Client) Checker ¶
func (c *Client) Checker(ctx context.Context, check *healthcheck.CheckState) error
Checker calls recipe api health endpoint and returns a check object to the caller
type ErrorResp ¶
type ErrorResp struct {
Errors []string `json:"errors"`
}
ErrorResp represents an error response containing a list of errors
type GetAreasInput ¶ added in v2.124.0
type GetAreasResponse ¶ added in v2.124.0
type GetAreasResponse struct {
Areas []Area `json:"areas"`
}
GetAreasResponse is the response object for GET /areas
Click to show internal directories.
Click to hide internal directories.