Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Liveness ¶
func Liveness(w http.ResponseWriter, _ *http.Request)
Liveness handles GET /healthz. It returns 200 as long as the process is running.
func ModuleFlagsSettingsLoadFailed ¶
func ModuleFlagsSettingsLoadFailed() bool
ModuleFlagsSettingsLoadFailed reports whether module flag loading is degraded.
func Readiness ¶
func Readiness(db Pinger) http.HandlerFunc
Readiness returns a handler for GET /readyz. It pings the database and returns 503 if the ping fails.
func SetModuleFlagsSettingsLoadFailure ¶
func SetModuleFlagsSettingsLoadFailure(failed bool)
SetModuleFlagsSettingsLoadFailure marks whether module flag loading is failing. This is process-wide state used by readiness checks.
Types ¶
Click to show internal directories.
Click to hide internal directories.