Documentation ¶
Overview ¶
Package sockets provides helper functions to create and configure Unix or TCP sockets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureTCPTransport ¶
ConfigureTCPTransport configures the specified Transport according to the specified proto and addr. If the proto is unix (using a unix socket to communicate) the compression is disabled.
func NewTCPSocket ¶
NewTCPSocket creates a TCP socket listener with the specified address and and the specified tls configuration. If TLSConfig is set, will encapsulate the TCP listener inside a TLS one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.