Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMux ¶
CreateMux creates an *http.ServeMux with handlers for /healthz/alive and /healthz/ready. The endpoints will return 200 OK if their respective CheckFunc returns true and 503 Service Unavailable if it returns false. If no CheckFunc was specified for the corresponding endpoint, the default probe is used and always returns true
func LivenessCheck ¶
func LivenessCheck(fn CheckFunc)
LivenessCheck sets the probe for the /healthz/alive endpoint
func ReadinessCheck ¶
func ReadinessCheck(fn CheckFunc)
ReadinessCheck sets the prod for the /healthz/ready endpoint
Types ¶
Click to show internal directories.
Click to hide internal directories.