Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPHealthCheck ¶
type TCPHealthCheck struct { Addr string `json:"addr"` Network string `json:"network"` // tcp tcp4 tcp6 }
TCPHealthCheck config
func DefaultTCPHealthCheck ¶
func DefaultTCPHealthCheck() *TCPHealthCheck
func (*TCPHealthCheck) DoHealthCheck ¶
func (t *TCPHealthCheck) DoHealthCheck() (resHealthCheck *view.ResHealthCheck, err error)
DoHealthCheck check is invoked periodically to perform the TCP check
func (*TCPHealthCheck) LoadExtConfig ¶
func (t *TCPHealthCheck) LoadExtConfig(extConfig string) (err error)
LoadExtConfig parse tcp config
Click to show internal directories.
Click to hide internal directories.