status

package
v2.75.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL