Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Pool ¶
type Pool interface { // GetEndorser returns endorser client by peer definition GetEndorser(ctx context.Context, p *Peer) (pb.EndorserClient, error) // GetRandomEndorser returns random MSP endorser client by peer definition GetRandomEndorser(ctx context.Context, mspID string) (pb.EndorserClient, error) // GetDeliver returns deliver client by peer definition GetDeliver(ctx context.Context, p *Peer) (pb.DeliverClient, error) // GetConnection returns random grpc connection for certain MSP GetConnection(mspID string) (*grpc.ClientConn, []byte, error) // GetDiscoveryClient returns fabric discovery client GetDiscoveryClient(mspID string) (discovery.DiscoveryClient, error) // Close gracefully closes all pool connections Close() error }
Pool describes common interface for pool of peer clients
Click to show internal directories.
Click to hide internal directories.