Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCheck ¶
func RegisterCheck(name string, check HealthCheck)
RegisterCheck adds a new check to the global register. If a check with the given name already exists, the function will panic.
Types ¶
type HealthCheck ¶
HealthCheck is a function that returns an error if a component is unhealthy. The application's overall health depends on the set of registered HealthChecks returning nil errors.
Click to show internal directories.
Click to hide internal directories.