Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPProbe ¶
type HTTPProbe struct { Name string Address string ResultsChan chan *v1.HealthStatus Ctx context.Context Cancel context.CancelFunc TimeInterval int MaxErrorsNum int TimeoutSecond int }
HTTPProbe probes through the http protocol
func (*HTTPProbe) GetHTTPHealth ¶
GetHTTPHealth get http health
type Probe ¶
type Probe interface { Check() Stop() }
Probe probe
func CreateProbe ¶
CreateProbe create probe
type TCPProbe ¶
type TCPProbe struct { Name string Address string ResultsChan chan *v1.HealthStatus Ctx context.Context Cancel context.CancelFunc TimeoutSecond int TimeInterval int MaxErrorsNum int }
TCPProbe probes through the tcp protocol
func (*TCPProbe) GetTCPHealth ¶
GetTCPHealth get tcp health
Click to show internal directories.
Click to hide internal directories.