Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPResponse ¶
type HealthCheckable ¶
type HealthCheckable interface {
HealthZ() error
}
type HealthChecker ¶
func New ¶
func New(config Config) (*HealthChecker, error)
func (*HealthChecker) HandleHealthz ¶
func (h *HealthChecker) HandleHealthz(w http.ResponseWriter, r *http.Request)
HandleHealthz is the http handler for `/healthz`
func (*HealthChecker) HandleLiveness ¶
func (h *HealthChecker) HandleLiveness(w http.ResponseWriter, r *http.Request)
HandleLiveness is the http handler for `/liveness`
func (*HealthChecker) StartHealthz ¶
func (h *HealthChecker) StartHealthz()
StartHealthz should be run in a new goroutine.
type ProviderInfo ¶
type ProviderInfo struct {
Check HealthCheckable
Description string
Type string
}
Click to show internal directories.
Click to hide internal directories.