Documentation ¶ Index ¶ func New(cfg *Config) *net.Dialer type Config func (cfg *Config) SetDefault() *Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(cfg *Config) *net.Dialer Types ¶ type Config ¶ type Config struct { Timeout *json.Duration `json:"timeout,omitempty" description:"Max time to wait for a connection to complete (if zero, no timeout)"` KeepAlive *json.Duration `` /* 144-byte string literal not displayed */ } func (*Config) SetDefault ¶ func (cfg *Config) SetDefault() *Config Source Files ¶ View all Source files config.go dialer.go Click to show internal directories. Click to hide internal directories.