Documentation ¶
Overview ¶
Package hc provides a basic type for generic checks. With this packages, components can provide their own HealthChecker and register then for later use.
Index ¶
Constants ¶
View Source
const HealthCheckOK = "WORKING"
HealthCheckOK is the status returned when the healthcheck works.
Variables ¶
View Source
var ErrDisabledComponent = errors.New("disabled component")
Functions ¶
func AddChecker ¶
AddChecker adds a new checker to the internal list of checkers. Checkers added to this list can then be checked using the Check function.
Types ¶
Click to show internal directories.
Click to hide internal directories.