Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handle ¶
type Handle struct {
C <-chan struct{}
}
Handle holds the token and the channel for components to use
func RegisterLiveness ¶
RegisterLiveness registers a component fore 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 (*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