mem

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemIterator

func NewMemIterator(batch [][]string, errInitial error) storage.StoreIterator

NewMemIterator returns new mem iterator for given batch.

Types

type Provider

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

Provider leveldb implementation of storage.Provider interface.

func NewProvider

func NewProvider() *Provider

NewProvider instantiates Provider.

func (*Provider) Close

func (p *Provider) Close() error

Close closes all stores created under this store provider.

func (*Provider) CloseStore

func (p *Provider) CloseStore(name string) error

CloseStore closes level db store of given name.

func (*Provider) OpenStore

func (p *Provider) OpenStore(name string) (storage.Store, error)

OpenStore opens and returns a store for given name space.

Jump to

Keyboard shortcuts

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