package
0.0.1
Repository: https://github.com/zzylol/victoriametrics.git
Documentation: pkg.go.dev

# 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.

# Variables

Dialer is default network dialer.
Resolver is default DNS resolver.

# Structs

TCPListener listens for the addr passed to NewTCPListener.