Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServiceErrorsHTTPMapping = map[error]struct { HTTPCode int ErrCode string }{ cockpit.ErrKeyNotFound: { HTTPCode: http.StatusNotFound, ErrCode: "ErrKeyNotFOund", }, } )
Functions ¶
This section is empty.
Types ¶
type CityHandler ¶
type CityHandler struct {
KeyValueService cockpit.KeyValueService
}
func (CityHandler) RegisterRoutes ¶
func (h CityHandler) RegisterRoutes(router *mux.Router)
type HealthzHandler ¶
type HealthzHandler struct{}
func (HealthzHandler) RegisterRoutes ¶
func (h HealthzHandler) RegisterRoutes(router *mux.Router)
type MetricHandler ¶
type MetricHandler struct{}
func (MetricHandler) RegisterRoutes ¶
func (h MetricHandler) RegisterRoutes(router *mux.Router)
type NationalHandler ¶
type NationalHandler struct {
KeyValueService cockpit.KeyValueService
}
func (NationalHandler) RegisterRoutes ¶
func (h NationalHandler) RegisterRoutes(router *mux.Router)
type ProvincialHandler ¶
type ProvincialHandler struct {
KeyValueService cockpit.KeyValueService
}
func (ProvincialHandler) RegisterRoutes ¶
func (h ProvincialHandler) RegisterRoutes(router *mux.Router)
Click to show internal directories.
Click to hide internal directories.