package
0.0.0-20200925061120-076a80078b8a
Repository: https://github.com/coredns/proxy.git
Documentation: pkg.go.dev
# Functions
RegisterPolicy adds a custom policy to the proxy.
# Variables
SupportedPolicies is the collection of policies registered.
# Structs
First is a policy that selects always the first healthy host in the list order.
HealthCheck is used for performing healthcheck on a collection of upstream hosts and select one based on the policy.
LeastConn is a policy that selects the host with the least connections.
Random is a policy that selects up hosts from a pool at random.
RoundRobin is a policy that selects hosts based on round robin ordering.
Spray is a policy that selects a host from a pool at random.
UpstreamHost represents a single proxy upstream.
# Interfaces
Policy decides how a host will be selected from a pool.
# Type aliases
HostPool is a collection of UpstreamHosts.
UpstreamHostDownFunc can be used to customize how Down behaves.