Back to

Package health

Latest Go to latest

The highest tagged major version is .

Published: May 31, 2019 | License: Apache-2.0 | Module:


Package handlers contains the HTTP handlers that are used for easy debugging and health checks for operators.


func StartServer

func StartServer(h *Health, addr string) string

type Health

type Health struct {
	// contains filtered or unexported fields

The Health handler will report the number of drains back to user.

func NewHealth

func NewHealth() *Health

NewHealth returns a new Health handler.

func (*Health) ServeHTTP

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

Handle implements the http.Handler interface.

func (*Health) SetCounter

func (h *Health) SetCounter(c map[string]int)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier