store

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotExist = errors.New("NotExist")
)

Functions

This section is empty.

Types

type DB

type DB interface {
	Close() error

	Del([]byte) error
	Set([]byte, []byte) error
	Get([]byte) ([]byte, error)

	NewTransaction(bool) (Transaction, error)
}

type Iterator

type Iterator interface {
	Close() error

	Next() error

	Valid() bool

	Key() []byte
	Value() []byte
}

type Transaction

type Transaction interface {
	Commit() error
	Rollback() error

	Del([]byte) error
	Set([]byte, []byte) error
	Get([]byte) ([]byte, error)

	NewIterator([]byte) (Iterator, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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