Documentation
¶
Index ¶
- Constants
- func AddCommands(cli CommandRegistrar)
- type ChannelResponse
- type ClientStub
- type CommandRegistrar
- type ConfigCmd
- type ConfigResponseParser
- type EndorserResponseParser
- type EndorsersCmd
- type LocalResponse
- type PeerCmd
- type PeerResponseParser
- type RawStub
- type ResponseParser
- type ServiceResponse
- type Stub
Constants ¶
View Source
const ( PeersCommand = "peers" ConfigCommand = "config" EndorsersCommand = "endorsers" )
Variables ¶
This section is empty.
Functions ¶
func AddCommands ¶
func AddCommands(cli CommandRegistrar)
Types ¶
type ChannelResponse ¶
type ChannelResponse interface { discoveryclient.ChannelResponse }
type ClientStub ¶
type ClientStub struct { }
func (*ClientStub) Send ¶
func (stub *ClientStub) Send(server string, conf common.Config, req *discoveryclient.Request) (ServiceResponse, error)
type CommandRegistrar ¶
type CommandRegistrar interface {
Command(name, help string, onCommand common.CLICommand) *kingpin.CmdClause
}
type ConfigCmd ¶
type ConfigCmd struct {
// contains filtered or unexported fields
}
func NewConfigCmd ¶
func NewConfigCmd(stub Stub, parser ResponseParser) *ConfigCmd
func (*ConfigCmd) SetChannel ¶
type ConfigResponseParser ¶
func (*ConfigResponseParser) ParseResponse ¶
func (parser *ConfigResponseParser) ParseResponse(channel string, res ServiceResponse) error
type EndorserResponseParser ¶
func (*EndorserResponseParser) ParseResponse ¶
func (parser *EndorserResponseParser) ParseResponse(channel string, res ServiceResponse) error
type EndorsersCmd ¶
type EndorsersCmd struct {
// contains filtered or unexported fields
}
func NewEndorsersCmd ¶
func NewEndorsersCmd(stub Stub, parser ResponseParser) *EndorsersCmd
func (*EndorsersCmd) SetChaincodes ¶
func (pc *EndorsersCmd) SetChaincodes(chaincodes *[]string)
func (*EndorsersCmd) SetChannel ¶
func (pc *EndorsersCmd) SetChannel(channel *string)
func (*EndorsersCmd) SetCollections ¶
func (pc *EndorsersCmd) SetCollections(collections *map[string]string)
func (*EndorsersCmd) SetServer ¶
func (pc *EndorsersCmd) SetServer(server *string)
type LocalResponse ¶
type LocalResponse interface { discoveryclient.LocalResponse }
type PeerCmd ¶
type PeerCmd struct {
// contains filtered or unexported fields
}
func NewPeerCmd ¶
func NewPeerCmd(stub Stub, parser ResponseParser) *PeerCmd
func (*PeerCmd) SetChannel ¶
type PeerResponseParser ¶
func (*PeerResponseParser) ParseResponse ¶
func (parser *PeerResponseParser) ParseResponse(channel string, res ServiceResponse) error
type RawStub ¶
type RawStub struct { }
func (*RawStub) Send ¶
func (stub *RawStub) Send(server string, conf common.Config, req *discoveryclient.Request) (ServiceResponse, error)
type ResponseParser ¶
type ResponseParser interface {
ParseResponse(channel string, response ServiceResponse) error
}
type ServiceResponse ¶
type ServiceResponse interface { ForChannel(string) discoveryclient.ChannelResponse ForLocal() discoveryclient.LocalResponse Raw() *discovery.Response }
Click to show internal directories.
Click to hide internal directories.