Documentation ¶
Index ¶
- Constants
- type MetaDBWithTMDB
- func (db *MetaDBWithTMDB) Close()
- func (db *MetaDBWithTMDB) Commit()
- func (db *MetaDBWithTMDB) DeleteTwigHeight(twigID int64)
- func (db *MetaDBWithTMDB) GetCurrHeight() int64
- func (db *MetaDBWithTMDB) GetEdgeNodes() []byte
- func (db *MetaDBWithTMDB) GetEntryFileSize() int64
- func (db *MetaDBWithTMDB) GetIsRunning() bool
- func (db *MetaDBWithTMDB) GetLastPrunedTwig() int64
- func (db *MetaDBWithTMDB) GetMaxSerialNum() int64
- func (db *MetaDBWithTMDB) GetOldestActiveTwigID() int64
- func (db *MetaDBWithTMDB) GetTwigHeight(twigID int64) int64
- func (db *MetaDBWithTMDB) GetTwigMtFileSize() int64
- func (db *MetaDBWithTMDB) IncrMaxSerialNum()
- func (db *MetaDBWithTMDB) IncrOldestActiveTwigID()
- func (db *MetaDBWithTMDB) Init()
- func (db *MetaDBWithTMDB) PrintInfo()
- func (db *MetaDBWithTMDB) ReloadFromKVDB()
- func (db *MetaDBWithTMDB) SetCurrHeight(h int64)
- func (db *MetaDBWithTMDB) SetEdgeNodes(bz []byte)
- func (db *MetaDBWithTMDB) SetEntryFileSize(size int64)
- func (db *MetaDBWithTMDB) SetIsRunning(isRunning bool)
- func (db *MetaDBWithTMDB) SetLastPrunedTwig(twigID int64)
- func (db *MetaDBWithTMDB) SetTwigMtFileSize(size int64)
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)
Click to show internal directories.
Click to hide internal directories.