Documentation ¶ Index ¶ type Balancer func Random() Balancer func RoundRobin() Balancer 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 Source Files ¶ View all Source files balancer.go Click to show internal directories. Click to hide internal directories.