store

package
v0.0.0-...-c7a2bb0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2015 License: MIT 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 {
	OpList list.List
}

func NewBatch

func NewBatch() *Batch

func (*Batch) Del

func (bt *Batch) Del(key []byte)

func (*Batch) Len

func (bt *Batch) Len() int

func (*Batch) Reset

func (bt *Batch) Reset()

func (*Batch) Set

func (bt *Batch) Set(key, value []byte)

type BatchOpDel

type BatchOpDel struct {
	Key []byte
}

type BatchOpSet

type BatchOpSet struct {
	Key, Value []byte
}

type Database

type Database interface {
	Close()
	Clear() error
	NewIterator() Iterator
	NewSnapshot() Snapshot
	Commit(bt *Batch) error
	Compact(start, limit []byte) error
	Get(key []byte) ([]byte, error)
	Stats() string
}

type Iterator

type Iterator interface {
	Close()
	SeekTo(key []byte) []byte
	SeekToFirst()
	Valid() bool
	Next()
	Key() []byte
	Value() []byte
	Error() error
}

type Snapshot

type Snapshot interface {
	Close()
	NewIterator() Iterator
	Get(key []byte) ([]byte, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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