status

package
v0.0.0-...-4aff305 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: GPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	APIPathLivenessQuery  = "/health"
	APIPathReadinessQuery = "/ready"
)

These are the status API URL paths.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API serves the status API

func NewAPI

func NewAPI(farm farm.Farm,
	logger log.Logger,
	clients metrics.Gauge,
	duration metrics.HistogramVec,
) *API

NewAPI creates a API with the correct dependencies.

func (*API) ServeHTTP

func (a *API) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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