Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &net.Dialer{}
Used by wrappers of standard library network types.
Functions ¶
This section is empty.
Types ¶
type WithContext ¶
type WithContext interface {
DialContext(ctx context.Context, network, addr string) (net.Conn, error)
}
An interface to ease wrapping dialers that explicitly include a network parameter.
type WithNetwork ¶
type WithNetwork struct { Network string Dialer WithContext }
Adapts a WithContext to the Dial interface in this package.
func (WithNetwork) DialerNetwork ¶
func (me WithNetwork) DialerNetwork() string
Click to show internal directories.
Click to hide internal directories.