# Functions
AddOrdererFlags adds flags for orderer-related commands.
CheckLogLevel checks that a given log level string is valid.
GetAdminClient returns a new admin client.
GetBroadcastClient creates a simple instance of the BroadcastClient interface.
GetDefaultSigner return a default Signer(Default/PERR) for cli.
GetEndorserClient returns a new endorser client.
No description provided by the author
No description provided by the author
GetMockEndorserClient return a endorser client return specified ProposalResponse and err(nil or error).
GetOrdererEndpointOfChain returns orderer endpoints of given chain.
InitConfig initializes viper config.
InitCrypto initializes crypto for this peer.
NewOrdererClientFromEnv creates an instance of an OrdererClient from the global Viper instance.
NewPeerClientFromEnv creates an instance of a PeerClient from the global Viper instance.
SetBCCSPKeystorePath sets the file keystore path for the SW BCCSP provider to an absolute path relative to the config file.
SetLogLevelFromViper sets the log level for 'module' logger to the value in core.yaml.
SetOrdererEnv adds orderer-specific settings to the global Viper environment.
# Constants
UndefinedParamValue defines what undefined parameters in the command line will initialise to.
# Variables
GetBroadcastClientFnc returns an instance of the BroadcastClient interface by default it is set to GetBroadcastClient function.
GetDefaultSignerFnc is a function that returns a default Signer(Default/PERR) by default it is set to GetDefaultSigner function.
GetEndorserClientFnc is a function that returns a new endorser client connection, by default it is set to GetEndorserClient function.
GetOrdererEndpointOfChainFnc returns orderer endpoints of given chain by default it is set to GetOrdererEndpointOfChain function.
No description provided by the author
# Structs
OrdererClient represents a client for communicating with an ordering service.
PeerClient represents a client for communicating with a peer.
# Interfaces
No description provided by the author