Documentation
¶
Overview ¶
Package health provides HTTP liveness and readiness middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves health endpoints and delegates all other requests. Readiness is atomic because startup and shutdown race with request handling.
func NewAll ¶ added in v0.50.0
NewAll serves health endpoints that are ready while every one of handlers is, and answers 404 to everything else.
func (*Handler) Ready ¶ added in v0.50.0
Ready reports whether the readiness endpoint reports success.
Click to show internal directories.
Click to hide internal directories.