Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockWithSourceID ¶ added in v0.2.0
BlockWithSourceID can provide extra information on the block source when aggregating multiple sources into a single output channel.
type Deliverer ¶ added in v0.2.0
Deliverer establishes a delivery stream connection to a block source (orderer or peer). Implementations are responsible for creating and managing the underlying gRPC stream.
type Parameters ¶
type Parameters struct {
Deliverer Deliverer
ChannelID string
Signer identity.SignerSerializer
TLSCertHash []byte
NextBlockNum uint64
OutputBlock chan<- *common.Block
OutputBlockWithSourceID chan<- *BlockWithSourceID
HeaderOnly bool
SourceID uint32
Retry *retry.Profile
}
Parameters holds the parameters for delivery.
type Streamer ¶ added in v0.2.0
type Streamer interface {
Context() context.Context
Send(*common.Envelope) error
RecvBlockOrStatus() (*common.Block, *common.Status, error)
}
Streamer represents an active delivery stream for receiving blocks from a block source. It provides methods to send seek requests, receive blocks or status messages, and access the underlying stream context for cancellation and metadata.
Click to show internal directories.
Click to hide internal directories.