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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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