balancer

package
v0.0.0-...-1ee6361 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balancer

type Balancer func(peers []fab.Peer) []fab.Peer

Balancer is a load-balancing function for peers

func Random

func Random() Balancer

Random balances peers randomly

func RoundRobin

func RoundRobin() Balancer

RoundRobin balances peers in a round-robin fashion

Jump to

Keyboard shortcuts

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