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 search api client that can be used to make requests to the server
func NewWithHealthClient ¶
func NewWithHealthClient(hcCli *healthcheck.Client) *Client
NewWithHealthClient creates a new instance of Client, reusing the URL and Clienter from the provided health check client.
func (*Client) Checker ¶
Checker calls dimension-search api health endpoint and returns a check object to the caller.
func (*Client) Dimension ¶
func (c *Client) Dimension(ctx context.Context, datasetID, edition, version, name, query string, params ...Config) (m *Model, err error)
Dimension allows the searching of a dimension for a specific dimension option, optionally pass in configuration parameters as an additional field. This can include a request specific internal token
type ErrInvalidDimensionSearchAPIResponse ¶
type ErrInvalidDimensionSearchAPIResponse struct {
// contains filtered or unexported fields
}
ErrInvalidDimensionSearchAPIResponse is returned when the dimension-search api does not respond with a valid status
func (ErrInvalidDimensionSearchAPIResponse) Code ¶
func (e ErrInvalidDimensionSearchAPIResponse) Code() int
Code returns the status code received from dimension-search api if an error is returned
func (ErrInvalidDimensionSearchAPIResponse) Error ¶
func (e ErrInvalidDimensionSearchAPIResponse) Error() string
Error should be called by the user to print out the stringified version of the error
type Item ¶
type Item struct { Code string `json:"code,omitempty"` DimensionOptionURL string `json:"dimension_option_url,omitempty"` HasData bool `json:"has_data,omitempty"` Label string `json:"label,omitempty"` Matches Matches `json:"matches,omitempty"` NumberOfChildren int `json:"number_of_children,omitempty"` }
Item represents a single hierarchy item returned by the search api