Documentation ¶
Overview ¶
Package dialer provides utility functions related to dialers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = new(net.Dialer)
Default provides a default dialer implementation ready to be used.
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
type Dialer interface { // DialContext opens a connection to addr, which should // be a canonical address with host and port, and returns // a net.Conn, if no error occours. DialContext(ctx context.Context, network, addr string) (net.Conn, error) }
Dialer is the interface that wraps the DialContext function.
Click to show internal directories.
Click to hide internal directories.