package
0.34.0
Repository: https://go.googlesource.com/net
Documentation: pkg.go.dev

# Functions

Dial works like DialContext on net.Dialer but using a dialer returned by FromEnvironment.
FromEnvironment returns the dialer specified by the proxy-related variables in the environment and makes underlying connections directly.
FromEnvironmentUsing returns the dialer specify by the proxy-related variables in the environment and makes underlying connections using the provided forwarding Dialer (for instance, a *net.Dialer with desired configuration).
FromURL returns a Dialer given a URL specification and an underlying Dialer for it to make network requests.
NewPerHost returns a PerHost Dialer that directs connections to either defaultDialer or bypass, depending on whether the connection matches one of the configured rules.
RegisterDialerType takes a URL scheme and a function to generate Dialers from a URL with that scheme and a forwarding Dialer.
SOCKS5 returns a Dialer that makes SOCKSv5 connections to the given address with an optional username and password.

# Variables

Direct implements Dialer by making network connections directly using net.Dial or net.DialContext.

# Structs

Auth contains authentication parameters that specific Dialers may require.
A PerHost directs connections to a default Dialer unless the host name requested matches one of a number of exceptions.

# Interfaces

A ContextDialer dials using a context.
A Dialer is a means to establish a connection.