tcpx

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPortReachableWithTimeout added in v1.3.9

func IsPortReachableWithTimeout(host string, tpcTimeout time.Duration) bool

func Wait added in v1.3.9

func Wait(config *Config, onTimeout func())

func WaitHosts

func WaitHosts()

Types

type Config added in v1.3.9

type Config struct {
	Hosts                []string
	GlobalTimeout        time.Duration
	TcpConnectionTimeout time.Duration
	WaitBefore           time.Duration
	WaitAfter            time.Duration
	WaitSleepInterval    time.Duration
}

func ConfigFromEnv added in v1.3.9

func ConfigFromEnv() *Config

Jump to

Keyboard shortcuts

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