store

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NotFoundError is a leveldb/errors.ErrNotFound
	NotFoundError = leveldb_errors.ErrNotFound
)

Functions

This section is empty.

Types

type ReadOptions

type ReadOptions = opt.ReadOptions

ReadOptions is a type alias of leveldb/opt.ReadOptions

type Store

type Store interface {
	Get(key []byte, ro *ReadOptions) (value []byte, err error)
	Has(key []byte, ro *ReadOptions) (ret bool, err error)
	Put(key, value []byte, wo *WriteOptions) error
	Close() error
}

Store is a interface represents key-value store.

type WriteOptions

type WriteOptions = opt.WriteOptions

WriteOptions is a type alias of leveldb/opt.WriteOptions

Directories

Path Synopsis
Package mock_store is a generated GoMock package.
Package mock_store is a generated GoMock package.

Jump to

Keyboard shortcuts

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