Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
broadcastdeliver.DeliverCftClient
}
Client allow connecting to the sidecar to deliver blocks.
func (*Client) Deliver ¶
func (c *Client) Deliver(ctx context.Context, config *DeliverConfig) error
Deliver start receiving blocks starting from config.StartBlkNum to config.OutputBlock. The value of config.StartBlkNum is updated with the latest block number. This is a wrapper for DeliverCftClient.Deliver to allow easy divergence in the future.
type Config ¶
type Config struct {
Endpoint *connection.Endpoint
ChannelID string
Retry *connection.RetryProfile
}
Config is used to define the connection properties to the sidecar.
Click to show internal directories.
Click to hide internal directories.