tcp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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 NewTCPHealthCheck

func NewTCPHealthCheck() *TCPHealthCheck

NewTCPHealthCheck new instance

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

Jump to

Keyboard shortcuts

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