Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeightedBalancer ¶
type WeightedBalancer struct {
// contains filtered or unexported fields
}
func NewBalancer ¶
func NewBalancer(proxies []proxy.Proxy) (*WeightedBalancer, error)
func (*WeightedBalancer) Proxies ¶
func (b *WeightedBalancer) Proxies() []proxy.Proxy
func (*WeightedBalancer) Select ¶
func (b *WeightedBalancer) Select(ctx context.Context, hzCtx *app.RequestContext) (proxy.Proxy, error)
Click to show internal directories.
Click to hide internal directories.