Documentation
¶
Index ¶
Constants ¶
View Source
const MaxBlockNum uint64 = math.MaxUint64
MaxBlockNum is used for endless deliver.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CftClient ¶
type CftClient struct {
ConnectionManager *ordererconn.ConnectionManager
Signer protoutil.Signer
ChannelID string
StreamCreator func(ctx context.Context, conn grpc.ClientConnInterface) (Stream, error)
}
CftClient allows delivering blocks from one connection at a time. If one connection fails, it will try to connect to another one.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a collection of nodes and their connections.
func New ¶
func New(config *ordererconn.Config) (*Client, error)
New creates a broadcast/deliver client. It must be closed to release all the associated connections.
func (*Client) CloseConnections ¶ added in v0.1.7
func (s *Client) CloseConnections()
CloseConnections closes all the connections for the client.
func (*Client) Deliver ¶
func (s *Client) Deliver(ctx context.Context, p *Parameters) error
Deliver starts the block receiver. The call to Deliver blocks until an error occurs or the context is canceled.
func (*Client) UpdateConnections ¶
func (s *Client) UpdateConnections(config *ordererconn.ConnectionConfig) error
UpdateConnections updates the connection config.
type Parameters ¶
Parameters needed for deliver to run.
Click to show internal directories.
Click to hide internal directories.