Documentation ¶
Overview ¶
Package health implements simple checks for readiness and liveness that will be invoked by the loadbalancer frequently
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerLiveness ¶ added in v0.1.19
HandlerLiveness returns the liveness handler that always return OK and 200
func HandlerReadiness ¶ added in v0.1.19
HandlerReadiness returns the readiness handler. This handler can be configured with ReadinessCheck(func(http.ResponseWriter,*http.Request)), the default behavior is a liveness check
func SetCustomReadinessCheck ¶ added in v0.1.19
func SetCustomReadinessCheck(check func(http.ResponseWriter, *http.Request))
ReadinessCheck allows to set a different function for the readiness check. The default readiness check is the same as the liveness check and does always return OK
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.