Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface { // AddLiveness adds a check that indicates that this instance of the // application should be destroyed or restarted. Every liveness check // is also included as a readiness check. AddLiveness(name string, check Check) // AddReadiness adds a check that indicates that this instance of the // application is currently unable to serve requests because of an upstream // or some transient failure. AddReadiness(name string, check Check) // LivenessHandler is the HTTP handler for just the /live endpoint. LivenessHandler(w http.ResponseWriter, r *http.Request) // ReadinessHandler is the HTTP handler for just the /ready endpoint. ReadinessHandler(w http.ResponseWriter, r *http.Request) }
Checker is a basic health checker.
Click to show internal directories.
Click to hide internal directories.