package
0.0.0-20221019062149-4514fd00f571
Repository: https://github.com/hellobchain/fabric-sdk-go.git
Documentation: pkg.go.dev
# Functions
CompileSignaturePolicy compiles the given signature policy and returns a GroupRetriever.
GetPolicies creates a set of 'signed by' signature policies and corresponding identities for the given set of MSP IDs.
NewGroup creates a new Group.
NewGroupOfGroups returns a new group of groups.
NewMSPPeerGroup returns a new MSP PeerGroup.
NewNOutOfPolicy creates an NOutOf signature policy.
NewPeerGroup returns a new PeerGroup.
NewPeerGroupResolver returns a new PeerGroupResolver.
NewPrincipal creates a new MSPPrincipal.
NewRandomLBP returns a random load-balance policy.
NewRandomPeerGroupResolver returns a PeerGroupResolver that chooses peers in a round-robin fashion.
NewRoundRobinLBP returns a round-robin load-balance policy.
NewRoundRobinPeerGroupResolver returns a PeerGroupResolver that chooses peers in a round-robin fashion.
NewSignedByPolicy creates a SignaturePolicy at the given index.
# Interfaces
Collapsable is implemented by any group that can collapse into a simple (non-hierarchical) Group.
Group contains a group of Items.
GroupOfGroups contains a set of groups.
Item represents any item.
LoadBalancePolicy is used to pick a peer group from a given set of peer groups.
PeerGroup contains a group of Peers.
PeerGroupResolver resolves a group of peers that would (exactly) satisfy a chaincode's endorsement policy.
# Type aliases
GroupRetriever is a function that returns groups of peers.
MSPPeerRetriever is a function that retrieves peers by MSPID.