Versions in this module Expand all Collapse all v0 v0.0.1 Feb 14, 2023 Changes in this version + type ActiveHealthChecks struct + Interval caddy.Duration + Port int + Timeout caddy.Duration + type FirstSelection struct + func (FirstSelection) CaddyModule() caddy.ModuleInfo + func (FirstSelection) Select(pool UpstreamPool, _ *layer4.Connection) *Upstream + type Handler struct + HealthChecks *HealthChecks + LoadBalancing *LoadBalancing + ProxyProtocol string + Upstreams UpstreamPool + func (Handler) CaddyModule() caddy.ModuleInfo + func (h *Handler) Cleanup() error + func (h *Handler) Provision(ctx caddy.Context) error + func (h Handler) Handle(down *layer4.Connection, _ layer4.Handler) error + type HealthChecks struct + Active *ActiveHealthChecks + Passive *PassiveHealthChecks + type IPHashSelection struct + func (IPHashSelection) CaddyModule() caddy.ModuleInfo + func (IPHashSelection) Select(pool UpstreamPool, conn *layer4.Connection) *Upstream + type LeastConnSelection struct + func (LeastConnSelection) CaddyModule() caddy.ModuleInfo + func (LeastConnSelection) Select(pool UpstreamPool, _ *layer4.Connection) *Upstream + type LoadBalancing struct + SelectionPolicy Selector + SelectionPolicyRaw json.RawMessage + TryDuration caddy.Duration + TryInterval caddy.Duration + type PassiveHealthChecks struct + FailDuration caddy.Duration + MaxFails int + UnhealthyConnectionCount int + type RandomChoiceSelection struct + Choose int + func (RandomChoiceSelection) CaddyModule() caddy.ModuleInfo + func (r *RandomChoiceSelection) Provision(ctx caddy.Context) error + func (r RandomChoiceSelection) Select(pool UpstreamPool, _ *layer4.Connection) *Upstream + func (r RandomChoiceSelection) Validate() error + type RandomSelection struct + func (RandomSelection) CaddyModule() caddy.ModuleInfo + func (r RandomSelection) Select(pool UpstreamPool, conn *layer4.Connection) *Upstream + type RoundRobinSelection struct + func (RoundRobinSelection) CaddyModule() caddy.ModuleInfo + func (r *RoundRobinSelection) Select(pool UpstreamPool, _ *layer4.Connection) *Upstream + type Selector interface + Select func(UpstreamPool, *layer4.Connection) *Upstream + type Upstream struct + Dial []string + Key string + MaxConnections int + TLS *reverseproxy.TLSConfig + func (u Upstream) String() string + type UpstreamPool []*Upstream