Documentation
¶
Index ¶
Constants ¶
const ( DefaultLimit = 20 DefaultOffset = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Router chi.Router // contains filtered or unexported fields }
API provides a struct to wrap the api around
type DatasetJSONDimension ¶ added in v1.2.0
type DatasetJSONLinks ¶ added in v1.2.0
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is the packages error type
func (Error) BadRequest ¶ added in v1.2.0
BadRequest satisfies the errBadRequest interface
func (Error) LogData ¶
LogData satisfies the dataLogger interface which is used to recover log data from an error
func (Error) Message ¶
Message satisfies the messager interface which is used to specify a response to be sent to the caller in place of the error text for a given error. This is useful when you don't want sensitive information or implementation details being exposed to the caller which could be used to find exploits in our API
type GetDatasetJSONResponse ¶ added in v1.10.0
type GetDatasetJSONResponse struct { Dimensions []DatasetJSONDimension `json:"dimensions"` Links DatasetJSONLinks `json:"links"` Observations []int `json:"observations"` TotalObservations int `json:"total_observations"` }
getDatasetJSONResponse is the response body for GET /datasets/{dataset_id}/editions/{edition}/versions/{version}/json
type GetFilterDimensionOptionsItem ¶ added in v1.2.0
type GetFilterDimensionOptionsResponse ¶ added in v1.2.0
type GetFilterDimensionOptionsResponse struct { Items []GetFilterDimensionOptionsItem `json:"items"` // contains filtered or unexported fields }
getDimensionOptionsResponse is the response body for GET /filters/{id}/dimensions/{name}/options