balancer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 45

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