Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutputHandler ¶
type OutputHandler interface { // WriteBlockWithTransactions writes a block and its transactions to the output. WriteBlockWithTransactions(ctx context.Context, block *models.Block, transactions []*models.Transaction) error // GetLatestBlock returns the latest block from the output. GetLatestBlock(ctx context.Context) (*models.Block, error) // GetMissingBlockIds returns the missing block IDs from the output. GetMissingBlockIds(ctx context.Context) ([]uint64, error) // Close closes the output handler. Close() error }
Click to show internal directories.
Click to hide internal directories.