inmem

package
v0.0.0-...-b1dd421 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "mem"

Variables

This section is empty.

Functions

func StoreConstructor

func StoreConstructor(config map[string]interface{}) (store.KVStore, error)

Types

type Batch

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

func (*Batch) Close

func (i *Batch) Close() error

func (*Batch) Delete

func (i *Batch) Delete(key []byte)

func (*Batch) Execute

func (i *Batch) Execute() error

func (*Batch) Set

func (i *Batch) Set(key, val []byte)

type Iterator

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

func (*Iterator) Close

func (i *Iterator) Close()

func (*Iterator) Current

func (i *Iterator) Current() ([]byte, []byte, bool)

func (*Iterator) Key

func (i *Iterator) Key() []byte

func (*Iterator) Next

func (i *Iterator) Next()

func (*Iterator) Seek

func (i *Iterator) Seek(k []byte)

func (*Iterator) SeekFirst

func (i *Iterator) SeekFirst()

func (*Iterator) Valid

func (i *Iterator) Valid() bool

func (*Iterator) Value

func (i *Iterator) Value() []byte

type Store

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

func MustOpen

func MustOpen() *Store

func Open

func Open() (*Store, error)

func (*Store) Close

func (i *Store) Close() error

func (*Store) Commit

func (i *Store) Commit() error

func (*Store) Delete

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

func (*Store) Get

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

func (*Store) Iterator

func (i *Store) Iterator(key []byte) store.KVIterator

func (*Store) NewBatch

func (i *Store) NewBatch() store.KVBatch

func (*Store) Set

func (i *Store) Set(key, val []byte) error

Jump to

Keyboard shortcuts

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