health

package
v0.0.0-...-57f4fd1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(h *Health, addr string) string

Types

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)

Jump to

Keyboard shortcuts

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