Documentation ¶
Overview ¶
Package health provides utilitis to check the health of a service at a regular interval.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Always ¶
type Always bool
Always is a health checker that always returns the same value. It is used when no health check is specified.
func (Always) Check ¶
Check always returns a nil channel. Receiving from this channel will block forever.
type Checker ¶
type Checker interface { Launch(remoteFunc func(w http.ResponseWriter, r *http.Request) (*url.URL, error)) Up() bool Check() <-chan Result }
Checker is the interface that wraps the basic methods for a health checker.
type Health ¶
Health periodically checks the health of a service.
Click to show internal directories.
Click to hide internal directories.