handlers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMiddleware

func ApplyMiddleware(h http.Handler) http.Handler

func NewLivenessHandler

func NewLivenessHandler() http.Handler

func NewMetricsHandler

func NewMetricsHandler(gs []*exporter.GitHubCollector) http.Handler

func NewNotFoundHandler

func NewNotFoundHandler() http.Handler

func NewReadinessHandler

func NewReadinessHandler() http.Handler

Types

type LivenessHandler

type LivenessHandler struct{}

func (*LivenessHandler) ServeHTTP

func (h *LivenessHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type NotFoundHandler

type NotFoundHandler struct{}

func (*NotFoundHandler) ServeHTTP

func (h *NotFoundHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ReadinessHandler

type ReadinessHandler struct{}

func (*ReadinessHandler) ServeHTTP

func (h *ReadinessHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Routes

type Routes struct {
	LivenessHandler  http.Handler
	ReadinessHandler http.Handler
	MetricsHandler   http.Handler
	NotFoundHandler  http.Handler
}

func NewRoutes

func NewRoutes() *Routes

func (*Routes) Handler

func (routes *Routes) Handler() http.Handler

Jump to

Keyboard shortcuts

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