Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthWatchdog ¶
type HealthWatchdog struct { healthcheck.Handler // contains filtered or unexported fields }
HealthWatchdog is a wrapper for healthy services. It takes care of the availability reporting and it automatically switches between ready and unavailable states based on readiness checks.
func NewHealthWatchdog ¶
func NewHealthWatchdog(name, port, healthPort string, service Service) *HealthWatchdog
NewHealthWatchdog returns a watchdog that wraps and monitors the given service.
Click to show internal directories.
Click to hide internal directories.