health

package
v0.0.0-...-0eec0e3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Liveness

func Liveness(cf ...CheckFunc) http.Handler

Liveness returns an HTTP handler for checking the health of the service.

func Readiness

func Readiness() http.Handler

Readiness returns an HTTP handler for checking Readiness state. Will return 503 untill Ready() is called

func Ready

func Ready()

Ready marks the service as ready to receive traffic.

Types

type CheckFunc

type CheckFunc func(context.Context) error

CheckFunc function signature for health checks.

Jump to

Keyboard shortcuts

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