package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev
# Functions
AddCommands registers the discovery commands to the given CommandRegistrar.
NewConfigCmd creates a new ConfigCmd.
NewEndorsersCmd creates a new EndorsersCmd.
NewPeerCmd creates a new PeerCmd with the given Stub and ResponseParser.
# Structs
ClientStub is a stub that communicates with the discovery service using the discovery client implementation.
ConfigCmd executes a command that retrieves config.
ConfigResponseParser parses config responses.
EndorserResponseParser parses endorsement responses from the peer.
EndorsersCmd executes a command that retrieves endorsers for a chaincode invocation chain.
PeerCmd executes channelPeer listing command.
PeerResponseParser parses a channelPeer response.
RawStub is a stub that communicates with the discovery service without any intermediary.
# Interfaces
ChannelResponse is the local interface used to generate mocks for foreign interface.
CommandRegistrar registers commands.
LocalResponse is the local interface used to generate mocks for foreign interface.
ResponseParser parses responses sent from the server.
ServiceResponse represents a response sent from the discovery service.
Stub represents the remote discovery service.