Versions in this module Expand all Collapse all v1 v1.0.0 Jul 17, 2020 Changes in this version + var DefaultDialer = websocket.DefaultDialer + var DefaultUpgrader = &websocket.FastHTTPUpgrader + func SetProduction() + type Factory func(string) (*ReverseProxy, error) + type IBalancer interface + Distribute func() int + func NewBalancer(ws []W) IBalancer + type Option struct + Addrs []string + OpenBalance bool + Ws []W + func WithBalancer(addrWeights map[string]Weight) Option + type Pool interface + Close func() + Get func(string) (*ReverseProxy, error) + Len func() int + Put func(*ReverseProxy) error + func NewChanPool(initialCap, maxCap int, factory Factory) (Pool, error) + type Proxier interface + Close func() + Reset func() + ServeHTTP func(ctx *fasthttp.RequestCtx) + SetClient func(addr string) Proxier + type ReverseProxy struct + func NewReverseProxy(oldAddr string, opts ...Option) *ReverseProxy + func (p *ReverseProxy) Close() + func (p *ReverseProxy) Reset() + func (p *ReverseProxy) ServeHTTP(ctx *fasthttp.RequestCtx) + func (p *ReverseProxy) SetClient(addr string) *ReverseProxy + type W interface + Weight func() int + type WSReverseProxy struct + Dialer *websocket.Dialer + Upgrader *websocket.FastHTTPUpgrader + func NewWSReverseProxy(host, path string) *WSReverseProxy + func (w *WSReverseProxy) ServeHTTP(ctx *fasthttp.RequestCtx) + type Weight uint + func (w Weight) Weight() int Other modules containing this package github.com/gophemt/fasthttp-reverse-proxy/v2