db

package
v0.0.0-...-5cda5f8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LevelDBStore

type LevelDBStore struct {
	*leveldb.DB
}

func NewLevelDBStore

func NewLevelDBStore(path string) (*LevelDBStore, error)

func (*LevelDBStore) Delete

func (d *LevelDBStore) Delete(key []byte) error

func (*LevelDBStore) Get

func (d *LevelDBStore) Get(key []byte) ([]byte, error)

func (*LevelDBStore) Put

func (d *LevelDBStore) Put(key []byte, value []byte) error

type Store

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

func NewStore

func NewStore(path string) (*Store, error)

func (*Store) GetLatestBatchIndex

func (s *Store) GetLatestBatchIndex() (uint64, bool)

func (*Store) GetReRollupIndex

func (s *Store) GetReRollupIndex() (uint64, bool)

func (*Store) GetToolReRollupIndex

func (s *Store) GetToolReRollupIndex() (uint64, bool)

func (*Store) SetLatestBatchIndex

func (s *Store) SetLatestBatchIndex(bn uint64) bool

func (*Store) SetLatestReRollupIndex

func (s *Store) SetLatestReRollupIndex(bn uint64) bool

func (*Store) SetToolReRollupIndex

func (s *Store) SetToolReRollupIndex(bn uint64) bool

Jump to

Keyboard shortcuts

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