handlers

package
v0.0.0-...-6a35e63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL