dialer

package
v3.0.0-alpha.3....-0a41b70 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultNetDialer = &NetDialer{
		Timeout: 30 * time.Second,
	}
)

Functions

This section is empty.

Types

type NetDialer

type NetDialer struct {
	Interface string
	Timeout   time.Duration
	DialFunc  func(ctx context.Context, network, addr string) (net.Conn, error)
	Logger    logger.Logger
}

func (*NetDialer) Dial

func (d *NetDialer) Dial(ctx context.Context, network, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

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