Documentation ¶
Index ¶
- type CachingEndorserPool
- type CommonClient
- type ConnCreator
- type PeerClient
- func (pc *PeerClient) Address() string
- func (pc *PeerClient) Certificate() tls.Certificate
- func (pc *PeerClient) Close()
- func (pc *PeerClient) Connection() (*grpc2.ClientConn, error)
- func (pc *PeerClient) Deliver() (pb.Deliver_DeliverClient, error)
- func (pc *PeerClient) DeliverClient() (pb.DeliverClient, error)
- func (pc *PeerClient) Discovery() (discovery.DiscoveryClient, error)
- func (pc *PeerClient) DiscoveryClient() (peer.DiscoveryClient, error)
- func (pc *PeerClient) Endorser() (pb.EndorserClient, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachingEndorserPool ¶
type CachingEndorserPool struct { ConnCreator Cache map[string]peer.Client Signer discovery2.Signer // contains filtered or unexported fields }
func (*CachingEndorserPool) NewPeerClientForAddress ¶
func (cep *CachingEndorserPool) NewPeerClientForAddress(cc grpc.ConnectionConfig) (peer.Client, error)
type ConnCreator ¶
type ConnCreator interface {
NewPeerClientForAddress(cc grpc.ConnectionConfig) (peer.Client, error)
}
type PeerClient ¶
type PeerClient struct { CommonClient Signer discovery2.Signer }
PeerClient represents a client for communicating with a peer
func (*PeerClient) Address ¶
func (pc *PeerClient) Address() string
func (*PeerClient) Certificate ¶
func (pc *PeerClient) Certificate() tls.Certificate
Certificate returns the TLS client certificate (if available)
func (*PeerClient) Close ¶
func (pc *PeerClient) Close()
func (*PeerClient) Connection ¶
func (pc *PeerClient) Connection() (*grpc2.ClientConn, error)
func (*PeerClient) Deliver ¶
func (pc *PeerClient) Deliver() (pb.Deliver_DeliverClient, error)
Deliver returns a client for the Deliver service
func (*PeerClient) DeliverClient ¶
func (pc *PeerClient) DeliverClient() (pb.DeliverClient, error)
func (*PeerClient) Discovery ¶
func (pc *PeerClient) Discovery() (discovery.DiscoveryClient, error)
func (*PeerClient) DiscoveryClient ¶
func (pc *PeerClient) DiscoveryClient() (peer.DiscoveryClient, error)
func (*PeerClient) Endorser ¶
func (pc *PeerClient) Endorser() (pb.EndorserClient, error)
Endorser returns a client for the Endorser service
Click to show internal directories.
Click to hide internal directories.