package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Functions
ExcludeByHost creates a ExclusionFilter out of the given exclusion predicate.
ExcludeHosts returns a ExclusionFilter that excludes the given endpoints.
NewClient creates a new Client instance.
NewFilter returns an endorser filter that uses the given exclusion filter and priority selector to filter and sort the endorsers.
NewMemoizeSigner creates a new MemoizeSigner that signs message with the given sign function.
NewRequest creates a new request.
# Variables
ErrNotFound defines an error that means that an element wasn't found.
NoExclusion accepts all peers and rejects no peers.
NoFilter returns a noop Filter.
NoPriorities is indifferent to how it selects peers.
PrioritiesByHeight selects peers by descending height.
# Structs
Client interacts with the discovery server.
MemoizeSigner signs messages with the same signature if the message was signed recently.
Peer aggregates identity, membership and channel-scoped information of a certain peer.
Request aggregates several queries inside it.
# Interfaces
ChannelResponse aggregates responses for a given channel.
ExclusionFilter returns true if the given Peer is not to be considered when selecting peers.
Filter filters and sorts the given endorsers.
LocalResponse aggregates responses for a channel-less scope.
PrioritySelector guides the selection of peers via giving peers a relative priority to their selection.
Response aggregates several responses from the discovery service.
# Type aliases
Dialer connects to the server.
Endorsers defines a set of peers that are sufficient for satisfying some chaincode's endorsement policy.
InvocationChain aggregates ChaincodeCalls.
Priority defines how likely a peer is to be selected over another peer.
Signer signs a message and returns the signature and nil, or nil and error on failure.