Documentation
¶
Overview ¶
Package storage contains low level interfaces and common structures for concrete ledger storage engine implementations
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound returns if record/index not found in leveldb storage. ErrNotFound = errors.New("storage object not found") )
Functions ¶
This section is empty.
Types ¶
type LedgerStorer ¶
type LedgerStorer interface {
GetCurrentPulse() record.PulseNum
GetRecord(*record.Reference) (record.Record, error)
SetRecord(record.Record) (*record.Reference, error)
GetClassIndex(*record.Reference) (*index.ClassLifeline, error)
SetClassIndex(*record.Reference, *index.ClassLifeline) error
GetObjectIndex(*record.Reference) (*index.ObjectLifeline, error)
SetObjectIndex(*record.Reference, *index.ObjectLifeline) error
GetPulseKeys(record.PulseNum) ([][]byte, error)
GetDrop(record.PulseNum) (*jetdrop.JetDrop, error)
SetDrop(record.PulseNum, *jetdrop.JetDrop) error
}
LedgerStorer represents append-only Ladger storage.
Click to show internal directories.
Click to hide internal directories.