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 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 ¶
DatabaseInfo holds data about a specific database
Source Files ¶
Click to show internal directories.
Click to hide internal directories.