Versions in this module Expand all Collapse all v1 v1.0.1 May 26, 2022 Changes in this version + func Fnv(b []byte) uint32 + func RegisterPolicy(name string, policy func() Policy) + type Balance struct + Name string + type BodyHash struct + Args []string + func (r *BodyHash) Init() error + func (r *BodyHash) Select(pool HostPool, ctx *fasthttp.RequestCtx) *fasthttputil.Proxy + type First struct + func (r *First) Init() error + func (r *First) Select(pool HostPool, ctx *fasthttp.RequestCtx) *fasthttputil.Proxy + type HostPool []*fasthttputil.Proxy + type IPHash struct + func (r *IPHash) Init() error + func (r *IPHash) Select(pool HostPool, ctx *fasthttp.RequestCtx) *fasthttputil.Proxy + type Policy interface + Init func() error + Select func(pool HostPool, ctx *fasthttp.RequestCtx) *fasthttputil.Proxy + type Proxy struct + Balance map[string]interface{} + Targets []*fasthttputil.Target + func (p *Proxy) Cron() + func (p *Proxy) Handler() fasthttp.RequestHandler + func (p *Proxy) Init(c *middleware.Config) (err error) + func (p *Proxy) Process(h fasthttp.RequestHandler) fasthttp.RequestHandler + func (p *Proxy) UnInit() + type ProxyHeader struct + Add map[string]string + Del []string + Set map[string]string + func (p *ProxyHeader) Handler() fasthttp.RequestHandler + func (p *ProxyHeader) Init(c *middleware.Config) (err error) + func (p *ProxyHeader) Process(h fasthttp.RequestHandler) fasthttp.RequestHandler + func (p *ProxyHeader) UnInit() + type Random struct + func (r *Random) Init() error + func (r *Random) Select(pool HostPool, ctx *fasthttp.RequestCtx) *fasthttputil.Proxy + type Ratelimit struct + Args map[string]string + Duration string + Headers map[string]string + Max int + Message struct{ ... } + Methods map[string]string + Timeout string + func (p *Ratelimit) Handler() fasthttp.RequestHandler + func (p *Ratelimit) Init(c *middleware.Config) (err error) + func (p *Ratelimit) Process(h fasthttp.RequestHandler) fasthttp.RequestHandler + func (p *Ratelimit) UnInit() + type RoundRobin struct + func (r *RoundRobin) Init() error + func (r *RoundRobin) Select(pool HostPool, ctx *fasthttp.RequestCtx) *fasthttputil.Proxy