# Functions
CreateTLSConfig returns a TLS config from the given cert and key.
GetID returns a unique ID (hash) for a network connection.
LocalAddr returns the local address of the connection.
NewClient creates a new client.
NewConnWrapper creates a new connection wrapper.
NewConsistentHash creates a new ConsistentHash instance.
NewLoadBalancerStrategy returns a LoadBalancerStrategy based on the server's load balancer strategy name.
NewProxy creates a new proxy.
NewRandom creates a new Random instance with the given server's proxies.
No description provided by the author
No description provided by the author
NewServer creates a new server.
No description provided by the author
NewWeightedRoundRobin creates a new WeightedRoundRobin load balancer.
RemoteAddr returns the remote address of the connection.
Resolve resolves a network address.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
ConsistentHash implements a load balancing strategy based on consistent hashing.
No description provided by the author
No description provided by the author
No description provided by the author
Random is a struct that holds a list of proxies and a mutex for thread safety.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
nolint:interfacebloat.
No description provided by the author
nolint:interfacebloat.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
UpgraderFunc is a function that upgrades a connection to TLS.