Versions in this module Expand all Collapse all v0 v0.6.0 Aug 30, 2025 Changes in this version + var ErrNotAvailable = errors.New("no available upstream at the moment") + func Register(names []string, h CreateBalancerHandler) error + type Balancer interface + Proxies func() []proxy.Proxy + Select func(ctx context.Context, hzCtx *app.RequestContext) (proxy.Proxy, error) + type CreateBalancerHandler func(proxies []proxy.Proxy, params any) (Balancer, error) + func Factory(name string) CreateBalancerHandler