Documentation ¶
Overview ¶
Package health implements the internal healthcheck
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handle ¶
Handle holds the token and the channel for components to use
func RegisterLiveness ¶
RegisterLiveness registers a component for liveness check with the default 30 seconds timeout, returns a token
func RegisterReadiness ¶
RegisterReadiness registers a component for readiness check with the default 30 seconds timeout, returns a token
func RegisterStartup ¶ added in v0.55.0
RegisterStartup registers a component for startup check, returns a token
func (*Handle) Deregister ¶
Deregister allows a component to easily deregister itself
type Status ¶
Status represents the current status of registered components it is built and returned by GetStatus()
func GetLive ¶
func GetLive() Status
GetLive returns health of all components registered for liveness
func GetLiveNonBlocking ¶
GetLiveNonBlocking returns the health of all components registered for liveness with a 500ms timeout
func GetReady ¶
func GetReady() (ret Status)
GetReady returns health of all components registered for both readiness and liveness
func GetReadyNonBlocking ¶
GetReadyNonBlocking returns the health of all components registered for both readiness and liveness with a 500ms timeout
func GetStartup ¶ added in v0.55.0
func GetStartup() Status
GetStartup returns health of all components registered for startup
func GetStartupNonBlocking ¶ added in v0.55.0
GetStartupNonBlocking returns the health of all components registered for startup with a 500ms timeout