Categorygithub.com/microdog/pforward
modulepackage
0.0.0-20191210085120-8cd01c91451b
Repository: https://github.com/microdog/pforward.git
Documentation: pkg.go.dev

# Functions

New returns a new Forward.
NewHealthChecker returns a new HealthChecker based on transport.
NewProxy returns a new proxy.

# Variables

ErrCachedClosed means cached connection was closed by peer.
ErrNoForward means no forwarder defined.
ErrNoHealthy means no healthy proxies left.
Variables declared for monitoring.
Variables declared for monitoring.
Variables declared for monitoring.
Variables declared for monitoring.
Variables declared for monitoring.
Variables declared for monitoring.

# Structs

Forward represents a plugin instance that can proxy requests to another (DNS) server.
Proxy defines an upstream host.
Transport hold the persistent cache.

# Interfaces

HealthChecker checks the upstream health.
Policy defines a policy we use for selecting upstreams.