output

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL