Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientHealthChecker ¶
type ClientHealthChecker struct {
// contains filtered or unexported fields
}
ClientHealthChecker contains the port and check function callback
func NewClientHealthChecker ¶
func NewClientHealthChecker(port string, f func() error) *ClientHealthChecker
NewClientHealthChecker function will return new ClientHealthChecker struct with specified port and checkFunction
func (*ClientHealthChecker) StartProbes ¶
func (s *ClientHealthChecker) StartProbes()
StartProbes will initilize http endpoint for(/health) check
type HealthCheck ¶ added in v0.7.5
type HealthChecker ¶ added in v0.7.5
type HealthChecker struct {
// contains filtered or unexported fields
}
func NewHealthCheck ¶ added in v0.7.5
func NewHealthCheck(logger *zerolog.Logger, interval time.Duration, services []HealthCheck) *HealthChecker
func (*HealthChecker) AnyServiceUnhealthy ¶ added in v0.7.5
func (c *HealthChecker) AnyServiceUnhealthy() bool
func (*HealthChecker) CheckForFailures ¶ added in v0.7.5
func (c *HealthChecker) CheckForFailures() error
Click to show internal directories.
Click to hide internal directories.