tcp

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct{}

Checker doing health checking by TCP handshaking.

func NewChecker

func NewChecker() *Checker

NewChecker creates TCPChecker.

func (*Checker) Check

func (c *Checker) Check(addr string, timeout time.Duration) error

Check checks given host with timeout.

Jump to

Keyboard shortcuts

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