store

package
v0.0.0-...-692f6c4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const BITSPERKEY = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Has(key *blockpkg.Key) bool
	Save(block blockpkg.Interface)
	Get(key *blockpkg.Key) blockpkg.Interface
	GetAll(t blockpkg.Type) []blockpkg.Interface
	GetLastKey() *blockpkg.Key
	Open()
	Close()
}

type LevelDbStore

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

func NewLevelDBStore

func NewLevelDBStore(file string, crypter *common.Crypter) *LevelDbStore

func (*LevelDbStore) Close

func (this *LevelDbStore) Close()

func (*LevelDbStore) Get

func (this *LevelDbStore) Get(key *blockpkg.Key) blockpkg.Interface

func (*LevelDbStore) GetAll

func (this *LevelDbStore) GetAll(t blockpkg.Type) []blockpkg.Interface

func (*LevelDbStore) GetLastKey

func (this *LevelDbStore) GetLastKey() *blockpkg.Key

func (*LevelDbStore) Has

func (this *LevelDbStore) Has(key *blockpkg.Key) bool

func (*LevelDbStore) Open

func (this *LevelDbStore) Open()

func (*LevelDbStore) Save

func (this *LevelDbStore) Save(b blockpkg.Interface)

Jump to

Keyboard shortcuts

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