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 CheckContext ¶
type Checker ¶
type Checker interface { AddLiveness(name string, check Check) AddReadiness(name string, check Check) Handler() http.Handler RegisterHandler(mux *http.ServeMux) SetFailFast(failFast bool) GetFailFast() bool }
Checker ...
func NewChecksHandler ¶
NewChecksHandler accepts two strings: health and ready paths. These paths will be used for liveness and readiness checks.
type CheckerContext ¶
type CheckerContext interface { AddLiveness(name string, check CheckContext) AddReadiness(name string, check CheckContext) Handler() http.Handler RegisterHandler(mux *http.ServeMux) SetFailFast(failFast bool) GetFailFast() bool }
CheckerContext ...
func NewChecksContextHandler ¶
func NewChecksContextHandler(healthPath, readyPath string) CheckerContext
NewChecksContextHandler 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.