package
0.11.5
Repository: https://github.com/tmpim/caddy.git
Documentation: pkg.go.dev

# Functions

NewSingleHostReverseProxy returns a new ReverseProxy that rewrites URLs to the scheme, host, and base path provided in target.
NewStaticUpstreams parses the configuration input and sets up static upstreams for the proxy middleware.
RegisterPolicy adds a custom policy to the proxy.

# Constants

No description provided by the author

# Structs

First is a policy that selects the first available host.
Header is a policy that selects based on a hash of the given header.
IPHash is a policy that selects hosts based on hashing the request IP.
LeastConn is a policy that selects the host with the least connections.
Proxy represents a middleware instance that can proxy requests.
Random is a policy that selects up hosts from a pool at random.
ReverseProxy is an HTTP Handler that takes an incoming request and sends it to another server, proxying the response back to the client.
RoundRobin is a policy that selects hosts based on round-robin ordering.
UpstreamHost represents a single proxy upstream.
URIHash is a policy that selects the host based on hashing the request URI.

# Interfaces

Policy decides how a host will be selected from a pool.
Upstream manages a pool of proxy upstream hosts.

# Type aliases

HostPool is a collection of UpstreamHosts.
UpstreamHostDownFunc can be used to customize how Down behaves.