Documentation ¶
Overview ¶
Package dialer introduces base interfaces for the structs that are responsible for connecting to a host or modifying the connection logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialFunc ¶
DialFunc is a function that opens a net.Conn to the specified addr over the specified network.
type Dialer ¶
type Dialer interface { // Dial attempts to open a new connection to the specified address // over the specified network. Dial(network, addr string) (conn net.Conn, err error) }
Dialer is a base interface for the structures responsible for connecting to hosts. Dialers are supposed to "chain" one over another in order to add more logic on top of the connection (redirecting, proxying, etc).
Click to show internal directories.
Click to hide internal directories.