Documentation ¶
Overview ¶
Package healthchecks provides functionality to add application-level healthchecks which evaluate the health of components at runtime and expose the results as expvars.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(name string, healthcheck Healthcheck)
Add adds the given healthcheck to the set of known healthchecks.
Types ¶
type Healthcheck ¶
type Healthcheck func() error
A Healthcheck checks the functionality of a component of your application and returns and error if anything is wrong.
Click to show internal directories.
Click to hide internal directories.