# Functions
DialMaybeSRV dials the given addr.
GetServerTLSConfig returns TLS config for the server.
GetTCPNetwork returns current tcp network.
GetUDPNetwork returns current udp network.
IsTrivialNetworkError returns true if the err can be ignored during logging.
NewStatDialFunc returns dialer function that supports DNS SRV records and registers stats metrics for conns.
NewStatDialFuncWithDial returns dialer function that registers stats metrics for conns.
NewTCPListener returns new TCP listener for the given addr and optional tlsConfig.
ParseTLSVersion returns tls version from the given string s.
TCP6Enabled returns true if dialing and listening for IPv4 TCP is enabled.
# Structs
TCPListener listens for the addr passed to NewTCPListener.