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

package balancedsorter

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

Index

Package Files

balancedsorter.go opts.go

func New Uses

func New(opts ...coptions.Opt) options.PeerSorter

New returns a peer sorter that chooses a peer according to a provided balancer.

func WithBalancer Uses

func WithBalancer(value balancer.Balancer) options.Opt

WithBalancer sets the balancing strategy to use to load balance between the peers

Package balancedsorter imports 5 packages (graph) and is imported by 1 packages. Updated 2018-09-19. Refresh now. Tools for package owners.