Versions in this module Expand all Collapse all v0 v0.9.10 Nov 3, 2017 v0.9.9 Oct 18, 2017 Changes in this version + var SupportedPolicies = make(map[string]func() Policy) + func RegisterPolicy(name string, policy func() Policy) + type HealthCheck struct + FailTimeout time.Duration + Hosts HostPool + Interval time.Duration + MaxFails int32 + Path string + Policy Policy + Port string + Spray Policy + func (u *HealthCheck) Select() *UpstreamHost + func (u *HealthCheck) Start() + func (u *HealthCheck) Stop() error + type HostPool []*UpstreamHost + type LeastConn struct + func (r *LeastConn) Select(pool HostPool) *UpstreamHost + type Policy interface + Select func(pool HostPool) *UpstreamHost + type Random struct + func (r *Random) Select(pool HostPool) *UpstreamHost + type RoundRobin struct + Robin uint32 + func (r *RoundRobin) Select(pool HostPool) *UpstreamHost + type Spray struct + func (r *Spray) Select(pool HostPool) *UpstreamHost + type UpstreamHost struct + CheckDown UpstreamHostDownFunc + CheckURL string + Checking bool + Conns int64 + FailTimeout time.Duration + Fails int32 + Name string + func (uh *UpstreamHost) Down() bool + func (uh *UpstreamHost) HealthCheckURL() + type UpstreamHostDownFunc func(*UpstreamHost) bool