Documentation ¶
Index ¶
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
}
Client is a recpie api client which can be used to make requests to the server
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 CodeList ¶
type CodeList struct { ID string `json:"id,omitempty"` HRef string `json:"href,omitempty"` Name string `json:"name,omitempty"` IsHierarchy *bool `json:"is_hierarchy,omitempty"` }
CodeList holds one of the codelists corresponding to a recipe
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
ErrorResponse models the error response from cantabular
type Instance ¶
type Instance struct { DatasetID string `json:"dataset_id,omitempty"` Editions []string `json:"editions,omitempty"` Title string `json:"title,omitempty"` CodeLists []CodeList `json:"code_lists,omitempty"` }
Instance holds one of the output_instances corresponding to a recipe
type Recipe ¶
type Recipe struct { ID string `json:"id,omitempty"` Alias string `json:"alias,omitempty"` Format string `json:"format,omitempty"` InputFiles []file `json:"files,omitempty"` OutputInstances []Instance `json:"output_instances,omitempty"` CantabularBlob string `json:"cantabular_blob,omitempty"` }
Recipe holds the response body for GET /recipes/{id}
Click to show internal directories.
Click to hide internal directories.