Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check func() error
Check
func DNSProbeCheck ¶
DNSProbeCheck returns a Check that determines whether a service with specified DNS name is reachable or not using net.Resolver's LookupHost method.
type Checker ¶
type Checker interface { AddLiveness(name string, check Check) AddReadiness(name string, check Check) Handler() http.Handler RegisterHandler(mux *http.ServeMux) }
Checker ...
func NewChecksHandler ¶
NewChecksHandler accepts two strings: health and ready paths. These paths will be used for liveness and readiness checks.
Click to show internal directories.
Click to hide internal directories.