Documentation
¶
Index ¶
- type Areas
- type Error
- type PopulationTypes
- func (h *PopulationTypes) GetAreaTypesPrivate(w http.ResponseWriter, r *http.Request)
- func (h *PopulationTypes) GetAreaTypesPublic(w http.ResponseWriter, r *http.Request)
- func (h *PopulationTypes) GetPrivate(w http.ResponseWriter, req *http.Request)
- func (h *PopulationTypes) GetPublic(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Areas ¶ added in v1.2.0
type Areas struct {
// contains filtered or unexported fields
}
Areas handles requests to /area-types
type Error ¶ added in v1.2.0
type Error struct {
// contains filtered or unexported fields
}
Error is the packages error type
func (Error) LogData ¶ added in v1.2.0
LogData satisfies the dataLogger interface which is used to recover log data from an error
func (Error) Message ¶ added in v1.2.0
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 PopulationTypes ¶
type PopulationTypes struct {
// contains filtered or unexported fields
}
func NewPopulationTypes ¶
func NewPopulationTypes(cfg *config.Config, r responder, c cantabularClient, d datasetAPIClient) *PopulationTypes
func (*PopulationTypes) GetAreaTypesPrivate ¶ added in v1.2.0
func (h *PopulationTypes) GetAreaTypesPrivate(w http.ResponseWriter, r *http.Request)
func (*PopulationTypes) GetAreaTypesPublic ¶ added in v1.2.0
func (h *PopulationTypes) GetAreaTypesPublic(w http.ResponseWriter, r *http.Request)
func (*PopulationTypes) GetPrivate ¶ added in v1.2.0
func (h *PopulationTypes) GetPrivate(w http.ResponseWriter, req *http.Request)
func (*PopulationTypes) GetPublic ¶ added in v1.2.0
func (h *PopulationTypes) GetPublic(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.