Documentation
¶
Index ¶
Constants ¶
const (
EntrySize = 34
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntryDB ¶
type EntryDB struct {
// contains filtered or unexported fields
}
func NewEntryDB ¶
NewEntryDB creates an EntryDB. A new file will be created if the specified path does not exist, but parent directories will not be created. If the file exists it will be used as the existing data. Returns ErrRecoveryRequired if the existing file is not a valid entry db. A EntryDB is still returned but all operations will return ErrRecoveryRequired until the Recover method is called.
func (*EntryDB) Append ¶
Append entries to the database. The entries are combined in memory and passed to a single Write invocation. If the write fails, it will attempt to truncate any partially written data. Subsequent writes to this instance will fail until partially written data is truncated.
func (*EntryDB) LastEntryIdx ¶
type EntryTypeFlag ¶ added in v1.9.3
type EntryTypeFlag uint8
const ( FlagSearchCheckpoint EntryTypeFlag = 1 << TypeSearchCheckpoint FlagCanonicalHash EntryTypeFlag = 1 << TypeCanonicalHash FlagInitiatingEvent EntryTypeFlag = 1 << TypeInitiatingEvent FlagExecutingLink EntryTypeFlag = 1 << TypeExecutingLink FlagExecutingCheck EntryTypeFlag = 1 << TypeExecutingCheck FlagPadding EntryTypeFlag = 1 << TypePadding // for additional padding FlagPadding2 EntryTypeFlag = FlagPadding << 1 )
func (*EntryTypeFlag) Add ¶ added in v1.9.3
func (ex *EntryTypeFlag) Add(v EntryTypeFlag)
func (EntryTypeFlag) Any ¶ added in v1.9.3
func (ex EntryTypeFlag) Any(v EntryTypeFlag) bool
func (*EntryTypeFlag) Remove ¶ added in v1.9.3
func (ex *EntryTypeFlag) Remove(v EntryTypeFlag)