Documentation ¶
Index ¶
Constants ¶
View Source
const ( LivenessEndpoint = statusRoot + "/liveness" ReadinessEndpoint = statusRoot + "/readiness" HealthEndpoint = statusRoot + "/health" )
Variables ¶
This section is empty.
Functions ¶
func NewHealthCheckHandler ¶
func NewHealthCheckHandler(checkSource status.HealthCheckSource, sharedSecret refreshable.String, healthStatusChangeHandlers []HealthStatusChangeHandler) http.Handler
Types ¶
type HealthStatusChangeHandler ¶
type HealthStatusChangeHandler interface {
HandleHealthStatusChange(ctx context.Context, prevStatus, currStatus health.HealthStatus)
}
func NewDiagnosticLoggingChangeHandler ¶
func NewDiagnosticLoggingChangeHandler() HealthStatusChangeHandler
NewDiagnosticLoggingChangeHandler will emit a diagnostic log whenever the latest health status' state is more severe than HealthStateRepairing.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.