health

package
v0.0.0-...-9c84b05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: MIT Imports: 4 Imported by: 0

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL