Documentation ¶ Index ¶ func DoTCPProbe(addr string, timeout time.Duration) (probe.Result, string, error) type Prober func New() Prober Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DoTCPProbe ¶ func DoTCPProbe(addr string, timeout time.Duration) (probe.Result, string, error) DoTCPProbe checks that a TCP socket to the address can be opened. If the socket can be opened, it returns Success If the socket fails to open, it returns Failure. This is exported because some other packages may want to do direct TCP probes. Types ¶ type Prober ¶ added in v1.13.0 type Prober interface { Probe(host string, port int, timeout time.Duration) (probe.Result, string, error) } Prober is an interface that defines the Probe function for doing TCP readiness/liveness checks. func New ¶ func New() Prober New creates Prober. Source Files ¶ View all Source files tcp.go Click to show internal directories. Click to hide internal directories.