Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthzHandler ¶ added in v0.10.0
HealthzHandler returns a simple HTTP handler that always returns OK. This is for liveness probes that just need to know if the process is running. The response body is empty.
func ReadyzHandler ¶ added in v0.10.0
func ReadyzHandler(timeout time.Duration, checks ...HealthChecker) http.Handler
ReadyzHandler returns a simple HTTP handler that runs health checks. It iterates through provided checks and returns 503 on any failure. The response body is empty.
Types ¶
type HealthChecker ¶ added in v0.10.0
HealthChecker is a minimal contract for readiness checks.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.