filesystem

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: MIT Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockPersistence added in v1.2.1

type BlockPersistence struct {
	// contains filtered or unexported fields
}

func NewBlockPersistence

func NewBlockPersistence(conf config.FilesystemBlockPersistenceConfig, parent log.Logger, metricFactory metric.Factory) (*BlockPersistence, error)

func (*BlockPersistence) GetBlockByTx added in v1.2.1

func (f *BlockPersistence) GetBlockByTx(txHash primitives.Sha256, minBlockTs primitives.TimestampNano, maxBlockTs primitives.TimestampNano) (block *protocol.BlockPairContainer, txIndexInBlock int, err error)

func (*BlockPersistence) GetBlockTracker added in v1.2.1

func (f *BlockPersistence) GetBlockTracker() *synchronization.BlockTracker

func (*BlockPersistence) GetLastBlock added in v1.2.1

func (f *BlockPersistence) GetLastBlock() (*protocol.BlockPairContainer, error)

func (*BlockPersistence) GetLastBlockHeight added in v1.2.1

func (f *BlockPersistence) GetLastBlockHeight() (primitives.BlockHeight, error)

func (*BlockPersistence) GetResultsBlock added in v1.2.1

func (*BlockPersistence) GetTransactionsBlock added in v1.2.1

func (*BlockPersistence) GracefulShutdown added in v1.2.1

func (f *BlockPersistence) GracefulShutdown(shutdownContext context.Context)

func (*BlockPersistence) ScanBlocks added in v1.2.1

func (f *BlockPersistence) ScanBlocks(from primitives.BlockHeight, pageSize uint8, cursor adapter.CursorFunc) error

func (*BlockPersistence) WriteNextBlock added in v1.2.1

func (f *BlockPersistence) WriteNextBlock(blockPair *protocol.BlockPairContainer) (bool, primitives.BlockHeight, error)

Jump to

Keyboard shortcuts

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