tcpprobe

package
v5.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	DialContext(context.Context, string, string) (net.Conn, error)
}

type Resolver

type Resolver interface {
	LookupIPAddr(context.Context, string) ([]net.IPAddr, error)
}

type TCPOptions

type TCPOptions struct {
	Timeout  time.Duration
	Resolver Resolver
	Dialer   Dialer
}

type TCPProbe

type TCPProbe struct {
	// contains filtered or unexported fields
}

func NewTCPProbe

func NewTCPProbe(name, endpoint string, opts TCPOptions) TCPProbe

func (TCPProbe) Check

func (p TCPProbe) Check(ctx context.Context) error

func (TCPProbe) Name

func (p TCPProbe) Name() string

Jump to

Keyboard shortcuts

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