fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/client/common/selection/balancer Index | Files

package balancer

import "github.com/hyperledger/fabric-sdk-go/pkg/client/common/selection/balancer"

Index

Package Files

balancer.go

type Balancer Uses

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

Balancer is a load-balancing function for peers

func Random Uses

func Random() Balancer

Random balances peers randomly

func RoundRobin Uses

func RoundRobin() Balancer

RoundRobin balances peers in a round-robin fashion

Package balancer imports 4 packages (graph) and is imported by 3 packages. Updated 2018-09-19. Refresh now. Tools for package owners.