Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
Conn is a generic stream-oriented network connection.
type Dialer ¶
Dialer is the dialer the storage used for stream-oriented network connection.
func NewDialer ¶
func NewDialer() *Dialer
NewDialer will create a new dialer with preset default value:
- dialer connect timeout will be 60s
- underlying conn read timeout will be 30s
- underlying conn write timeout will be 30s
func (*Dialer) DialContext ¶
DialContext connects to the address on the named network using the provided context.
func (*Dialer) WithConnectTimeout ¶
WithConnectTimeout will configure dialer's timeout
func (*Dialer) WithReadTimeout ¶
WithReadTimeout will configure underlying conn's read timeout
Click to show internal directories.
Click to hide internal directories.