memorydb

package
v0.0.0-...-c1b05a4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bulk

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

func (*Bulk) Delete

func (bulk *Bulk) Delete(namespace []byte, key []byte) error

func (*Bulk) DiscardLast

func (bulk *Bulk) DiscardLast()

func (*Bulk) Flush

func (bulk *Bulk) Flush() error

func (*Bulk) Set

func (bulk *Bulk) Set(namespace []byte, key []byte, value []byte) error

type DB

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

func NewDB

func NewDB() *DB

func (*DB) Close

func (db *DB) Close() error

func (*DB) Delete

func (db *DB) Delete(namespace []byte, key []byte) error

func (*DB) Exist

func (db *DB) Exist(namespace []byte, key []byte) (bool, error)

func (*DB) Get

func (db *DB) Get(namespace []byte, key []byte) ([]byte, bool, error)

func (*DB) Iterator

func (db *DB) Iterator(start []byte, end []byte) db.Iterator

func (*DB) NewBulk

func (db *DB) NewBulk() rollupdb.Bulk

func (*DB) NewTx

func (db *DB) NewTx() rollupdb.Transaction

func (*DB) Set

func (db *DB) Set(namespace []byte, key []byte, value []byte) error

func (*DB) Type

func (db *DB) Type() string

type Iterator

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

func (*Iterator) Key

func (iter *Iterator) Key() ([]byte, error)

func (*Iterator) Next

func (iter *Iterator) Next() error

func (*Iterator) Valid

func (iter *Iterator) Valid() bool

func (*Iterator) Value

func (iter *Iterator) Value() ([]byte, error)

type Transaction

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

func (*Transaction) Commit

func (transaction *Transaction) Commit() error

func (*Transaction) Delete

func (transaction *Transaction) Delete(namespace []byte, key []byte) error

func (*Transaction) Discard

func (transaction *Transaction) Discard()

func (*Transaction) Set

func (transaction *Transaction) Set(namespace []byte, key []byte, value []byte) error

Jump to

Keyboard shortcuts

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