common

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 CommonClient

type CommonClient struct {
	*grpc.Client
	Address string
	Sn      string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL