Documentation ¶
Overview ¶
Package sockets provides helper functions to create and configure Unix or TCP sockets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrProtocolNotAvailable is returned when a given transport protocol is not provided by the operating system.
Functions ¶
func ConfigureTransport ¶
ConfigureTransport configures the specified Transport according to the specified proto and addr. If the proto is unix (using a unix socket to communicate) or npipe the compression is disabled.
func DialPipe ¶
DialPipe connects to a Windows named pipe. This is not supported on other OSes.
func DialerFromEnvironment ¶
DialerFromEnvironment takes in a "direct" *net.Dialer and returns a proxy.Dialer which will route the connections through the proxy using the given dialer.
func GetProxyEnv ¶
GetProxyEnv allows access to the uppercase and the lowercase forms of proxy-related variables. See the Go specification for details on these variables. https://golang.org/pkg/net/http/
Types ¶
This section is empty.