Back to

Package balancedsorter

Latest Go to latest

The latest major version is .

Published: Aug 26, 2020 | License: Apache-2.0 | Module:


func New

func New(opts ...coptions.Opt) options.PeerSorter

New returns a peer sorter that chooses a peer according to a provided balancer.

func WithBalancer

func WithBalancer(value balancer.Balancer) options.Opt

WithBalancer sets the balancing strategy to use to load balance between the peers

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier