Versions in this module Expand all Collapse all v1 v1.4.10 Dec 9, 2020 Changes in this version + const ConfigCommand + const EndorsersCommand + const PeersCommand + func AddCommands(cli CommandRegistrar) + type ClientStub struct + func (stub *ClientStub) Send(server string, conf common.Config, req *discovery.Request) (ServiceResponse, error) + type CommandRegistrar interface + Command func(name, help string, onCommand common.CLICommand) *kingpin.CmdClause + type ConfigCmd struct + func NewConfigCmd(stub Stub, parser ResponseParser) *ConfigCmd + func (pc *ConfigCmd) Execute(conf common.Config) error + func (pc *ConfigCmd) SetChannel(channel *string) + func (pc *ConfigCmd) SetServer(server *string) + type ConfigResponseParser struct + func (parser *ConfigResponseParser) ParseResponse(channel string, res ServiceResponse) error + type EndorserResponseParser struct + func (parser *EndorserResponseParser) ParseResponse(channel string, res ServiceResponse) error + type EndorsersCmd struct + func NewEndorsersCmd(stub Stub, parser ResponseParser) *EndorsersCmd + func (pc *EndorsersCmd) Execute(conf common.Config) error + func (pc *EndorsersCmd) SetChaincodes(chaincodes *[]string) + func (pc *EndorsersCmd) SetChannel(channel *string) + func (pc *EndorsersCmd) SetCollections(collections *map[string]string) + func (pc *EndorsersCmd) SetServer(server *string) + type PeerCmd struct + func NewPeerCmd(stub Stub, parser ResponseParser) *PeerCmd + func (pc *PeerCmd) Execute(conf common.Config) error + func (pc *PeerCmd) SetChannel(channel *string) + func (pc *PeerCmd) SetServer(server *string) + type PeerResponseParser struct + func (parser *PeerResponseParser) ParseResponse(channel string, res ServiceResponse) error + type RawStub struct + func (stub *RawStub) Send(server string, conf common.Config, req *discovery.Request) (ServiceResponse, error) + type ResponseParser interface + ParseResponse func(channel string, response ServiceResponse) error + type ServiceResponse interface + ForChannel func(string) discovery.ChannelResponse + ForLocal func() discovery.LocalResponse + Raw func() *Response + type Stub interface + Send func(server string, conf common.Config, req *discovery.Request) (ServiceResponse, error)