store

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: 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 Path

type Path []byte

func (Path) String

func (path Path) String() string

type Registry

type Registry struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(db dbm.DB) *Registry

func (*Registry) DB

func (reg *Registry) DB() dbm.DB

func (*Registry) GetOrMakeStore

func (reg *Registry) GetOrMakeStore(path string) *Store

func (*Registry) GetStore

func (reg *Registry) GetStore(path string) (*Store, error)

func (*Registry) RegisterStore

func (reg *Registry) RegisterStore(path string) error

type Store

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

func NewStore

func NewStore(path string, db dbm.DB) *Store

func (*Store) Delete

func (store *Store) Delete(key []byte) error

func (*Store) DeleteSync

func (store *Store) DeleteSync(key []byte) error

func (*Store) Get

func (store *Store) Get(key []byte) ([]byte, error)

func (*Store) GetKeys

func (store *Store) GetKeys(start, end []byte) (keyArrayBytes []byte, err error)

func (*Store) GetMany

func (store *Store) GetMany(start, end []byte) (kvArrayBytes []byte, err error)

func (*Store) GetPath

func (store *Store) GetPath() string

func (*Store) Has

func (store *Store) Has(key []byte) (bool, error)

func (*Store) Iterator

func (store *Store) Iterator(start, end []byte) (dbm.Iterator, error)

func (*Store) Set

func (store *Store) Set(key []byte, value []byte) error

func (*Store) SetSync

func (store *Store) SetSync(key []byte, value []byte) error

Jump to

Keyboard shortcuts

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