databasereader

package
v1.1.55 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyDbFilePath = errors.New("empty db file path")

ErrEmptyDbFilePath signals that an empty database file path has been provided

View Source
var ErrNilDirectoryReader = errors.New("nil directory reader")

ErrNilDirectoryReader signals that a nil directory reader has been provided

View Source
var ErrNilMarshalizer = errors.New("nil marshalizer")

ErrNilMarshalizer signals that a nil marshalizer has been provided

View Source
var ErrNilPersisterFactory = errors.New("nil persister factory")

ErrNilPersisterFactory signals that a nil persister factory has been provided

View Source
var ErrNoDatabaseFound = errors.New("no database found")

ErrNoDatabaseFound signals that no database has been found in the provided path

View Source
var ErrNoHeader = errors.New("no header")

ErrNoHeader signals that no header has been found during database read

Functions

func New

func New(args Args) (*databaseReader, error)

New will return a new instance of databaseReader

func NewHeaderMarshalizer

func NewHeaderMarshalizer(marshalizer marshal.Marshalizer) (*headerMarshalizer, error)

NewHeaderMarshalizer returns a new instance of a headerMarshalizer

Types

type Args

type Args struct {
	DirectoryReader   storage.DirectoryReaderHandler
	GeneralConfig     config.Config
	Marshalizer       marshal.Marshalizer
	PersisterFactory  storage.PersisterFactory
	DbPathWithChainID string
}

Args holds the arguments needed for creating a new database reader

type DatabaseInfo

type DatabaseInfo struct {
	Epoch uint32
	Shard uint32
}

DatabaseInfo holds data about a specific database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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