metadb

package
v0.0.0-...-19f5321 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ByteCurrHeight         = byte(0x10)
	ByteTwigMtFileSize     = byte(0x11)
	ByteEntryFileSize      = byte(0x12)
	ByteTwigHeight         = byte(0x13)
	ByteLastPrunedTwig     = byte(0x14)
	ByteEdgeNodes          = byte(0x15)
	ByteMaxSerialNum       = byte(0x16)
	ByteActiveEntryCount   = byte(0x17)
	ByteOldestActiveTwigID = byte(0x18)
	ByteIsRunning          = byte(0x19)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaDBWithTMDB

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

func NewMetaDB

func NewMetaDB(kvdb *indextree.RocksDB) *MetaDBWithTMDB

func (*MetaDBWithTMDB) Close

func (db *MetaDBWithTMDB) Close()

func (*MetaDBWithTMDB) Commit

func (db *MetaDBWithTMDB) Commit()

func (*MetaDBWithTMDB) DeleteTwigHeight

func (db *MetaDBWithTMDB) DeleteTwigHeight(twigID int64)

func (*MetaDBWithTMDB) GetCurrHeight

func (db *MetaDBWithTMDB) GetCurrHeight() int64

func (*MetaDBWithTMDB) GetEdgeNodes

func (db *MetaDBWithTMDB) GetEdgeNodes() []byte

func (*MetaDBWithTMDB) GetEntryFileSize

func (db *MetaDBWithTMDB) GetEntryFileSize() int64

func (*MetaDBWithTMDB) GetIsRunning

func (db *MetaDBWithTMDB) GetIsRunning() bool

func (*MetaDBWithTMDB) GetLastPrunedTwig

func (db *MetaDBWithTMDB) GetLastPrunedTwig() int64

func (*MetaDBWithTMDB) GetMaxSerialNum

func (db *MetaDBWithTMDB) GetMaxSerialNum() int64

func (*MetaDBWithTMDB) GetOldestActiveTwigID

func (db *MetaDBWithTMDB) GetOldestActiveTwigID() int64

func (*MetaDBWithTMDB) GetTwigHeight

func (db *MetaDBWithTMDB) GetTwigHeight(twigID int64) int64

func (*MetaDBWithTMDB) GetTwigMtFileSize

func (db *MetaDBWithTMDB) GetTwigMtFileSize() int64

func (*MetaDBWithTMDB) IncrMaxSerialNum

func (db *MetaDBWithTMDB) IncrMaxSerialNum()

func (*MetaDBWithTMDB) IncrOldestActiveTwigID

func (db *MetaDBWithTMDB) IncrOldestActiveTwigID()

func (*MetaDBWithTMDB) Init

func (db *MetaDBWithTMDB) Init()

func (*MetaDBWithTMDB) PrintInfo

func (db *MetaDBWithTMDB) PrintInfo()

func (*MetaDBWithTMDB) ReloadFromKVDB

func (db *MetaDBWithTMDB) ReloadFromKVDB()

func (*MetaDBWithTMDB) SetCurrHeight

func (db *MetaDBWithTMDB) SetCurrHeight(h int64)

func (*MetaDBWithTMDB) SetEdgeNodes

func (db *MetaDBWithTMDB) SetEdgeNodes(bz []byte)

func (*MetaDBWithTMDB) SetEntryFileSize

func (db *MetaDBWithTMDB) SetEntryFileSize(size int64)

func (*MetaDBWithTMDB) SetIsRunning

func (db *MetaDBWithTMDB) SetIsRunning(isRunning bool)

func (*MetaDBWithTMDB) SetLastPrunedTwig

func (db *MetaDBWithTMDB) SetLastPrunedTwig(twigID int64)

func (*MetaDBWithTMDB) SetTwigMtFileSize

func (db *MetaDBWithTMDB) SetTwigMtFileSize(size int64)

Jump to

Keyboard shortcuts

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