Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthChecker ¶
type HealthChecker struct {
// contains filtered or unexported fields
}
HealthChecker is a struct that is responsible for checking the health of servers It will periodically check the health of servers and update the status of each server It is the only entity that can update the status of a server
func NewHealthChecker ¶
func NewHealthChecker(servers []*common.Server, serviceName string) *HealthChecker
func (*HealthChecker) SetPeriod ¶
func (hc *HealthChecker) SetPeriod(period time.Duration)
func (*HealthChecker) ShutDown ¶
func (hc *HealthChecker) ShutDown()
func (*HealthChecker) Start ¶
func (hc *HealthChecker) Start()
Click to show internal directories.
Click to hide internal directories.