null

package
v0.0.0-...-76270ce Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct{}

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) Merge

func (i *Batch) Merge(key []byte, oper store.AssociativeMerge)

func (*Batch) Set

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

type Iterator

type Iterator struct{}

func (*Iterator) Close

func (i *Iterator) Close() error

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 Reader

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

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Get

func (r *Reader) Get(key []byte) ([]byte, error)

func (*Reader) Iterator

func (r *Reader) Iterator(key []byte) store.KVIterator

type Store

type Store struct{}

func Open

func Open() (*Store, error)

func (*Store) Close

func (i *Store) Close() error

func (*Store) Reader

func (i *Store) Reader() (store.KVReader, error)

func (*Store) Writer

func (i *Store) Writer() (store.KVWriter, error)

type Writer

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

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) Delete

func (w *Writer) Delete(key []byte) error

func (*Writer) Get

func (w *Writer) Get(key []byte) ([]byte, error)

these two methods can safely read using the regular methods without a read transaction, because we know that no one else is writing but us

func (*Writer) Iterator

func (w *Writer) Iterator(key []byte) store.KVIterator

func (*Writer) NewBatch

func (w *Writer) NewBatch() store.KVBatch

func (*Writer) Set

func (w *Writer) Set(key, val []byte) error

Jump to

Keyboard shortcuts

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