Documentation ¶
Index ¶
Constants ¶
View Source
const ( HealthCheckTypeHTTP = "http" HealthCheckTypeTCP = "tcp" )
Supported health check types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker periodically checks the health of backends in registered ServerPools.
func NewChecker ¶
creates a new health checker with the given interval and timeout.
func (*Checker) RegisterPool ¶
func (c *Checker) RegisterPool(p *pool.ServerPool)
Click to show internal directories.
Click to hide internal directories.