hybridDB

package
v6.4.4-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HybridDB

type HybridDB struct {
	Sem sync.RWMutex
	// contains filtered or unexported fields
}

func NewBoltMapHybridDB

func NewBoltMapHybridDB(bucketList [][]byte, filename string) *HybridDB

func NewLevelMapHybridDB

func NewLevelMapHybridDB(filename string, create bool) (*HybridDB, error)

func (*HybridDB) Clear

func (db *HybridDB) Clear(bucket []byte) error

func (*HybridDB) Close

func (db *HybridDB) Close() error

func (*HybridDB) Delete

func (db *HybridDB) Delete(bucket, key []byte) error

func (*HybridDB) DoesKeyExist

func (db *HybridDB) DoesKeyExist(bucket, key []byte) (bool, error)

func (*HybridDB) Get

func (db *HybridDB) Get(bucket, key []byte, destination interfaces.BinaryMarshallable) (interfaces.BinaryMarshallable, error)

func (*HybridDB) GetAll

func (*HybridDB) ListAllBuckets

func (db *HybridDB) ListAllBuckets() ([][]byte, error)

func (*HybridDB) ListAllKeys

func (db *HybridDB) ListAllKeys(bucket []byte) ([][]byte, error)

func (*HybridDB) Put

func (db *HybridDB) Put(bucket, key []byte, data interfaces.BinaryMarshallable) error

func (*HybridDB) PutInBatch

func (db *HybridDB) PutInBatch(records []interfaces.Record) error

func (*HybridDB) Trim

func (db *HybridDB) Trim()

Jump to

Keyboard shortcuts

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