prefix

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is similar with tendermint/tendermint/libs/db/prefix_db both gives access only to the limited subset of the store for convinience or safety

func NewStore

func NewStore(parent types.KVStore, prefix []byte) Store

func (Store) CacheWrap

func (s Store) CacheWrap() types.CacheWrap

Implements CacheWrap

func (Store) CacheWrapWithTrace

func (s Store) CacheWrapWithTrace(w io.Writer, tc types.TraceContext) types.CacheWrap

CacheWrapWithTrace implements the KVStore interface.

func (Store) Delete

func (s Store) Delete(key []byte)

Implements KVStore

func (Store) Get

func (s Store) Get(key []byte) []byte

Implements KVStore

func (Store) GetStoreType

func (s Store) GetStoreType() types.StoreType

Implements Store

func (Store) Has

func (s Store) Has(key []byte) bool

Implements KVStore

func (Store) Iterator

func (s Store) Iterator(start, end []byte) types.Iterator

Implements KVStore Check https://github.com/tendermint/tendermint/blob/master/libs/db/prefix_db.go#L106

func (Store) ReverseIterator

func (s Store) ReverseIterator(start, end []byte) types.Iterator

Implements KVStore Check https://github.com/tendermint/tendermint/blob/master/libs/db/prefix_db.go#L129

func (Store) Set

func (s Store) Set(key, value []byte)

Implements KVStore

Jump to

Keyboard shortcuts

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