wrr

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...lbapi.Opt) lbapi.Balancer

New make a new load-balancer instance with Weighted Round-Robin

func WithPeersAndWeights

func WithPeersAndWeights(peers []lbapi.Peer, weights []int) lbapi.Opt

WithPeersAndWeights allows passing a simple peer array and corresponding weight array separately.

func WithWeightedPeers

func WithWeightedPeers(peers ...lbapi.WeightedPeer) lbapi.Opt

WithWeightedPeers allows passing a weighted-peers array.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL