Documentation ¶
Index ¶
- type Bucket
- type Bulk
- type BulkFunc
- type DeleteFunc
- type EnableAutoFlushFunc
- type ErrorFunc
- type FirstFunc
- type GetFunc
- type Getter
- type HasFunc
- type IsNotFoundFunc
- type IterateFunc
- type Iterator
- type KeyFunc
- type LastFunc
- type NextFunc
- type PrevFunc
- type PutFunc
- type Putter
- type Range
- type ReleaseFunc
- type Snapshot
- type SnapshotFunc
- type Store
- type ValueFunc
- type WriteFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket string
Bucket provides logical bucket for kv store.
type Bulk ¶
type Bulk interface { Putter EnableAutoFlush() // if set, the bulk will be non-atomic Write() error }
Bulk is the bulk putter.
type DeleteFunc ¶
func (DeleteFunc) Delete ¶
func (f DeleteFunc) Delete(key []byte) error
type EnableAutoFlushFunc ¶
type EnableAutoFlushFunc func()
func (EnableAutoFlushFunc) EnableAutoFlush ¶
func (f EnableAutoFlushFunc) EnableAutoFlush()
type Getter ¶
type Getter interface { Get(key []byte) ([]byte, error) Has(key []byte) (bool, error) IsNotFound(err error) bool }
Getter defines methods to read kv.
type IsNotFoundFunc ¶
func (IsNotFoundFunc) IsNotFound ¶
func (f IsNotFoundFunc) IsNotFound(err error) bool
type IterateFunc ¶
func (IterateFunc) Iterate ¶
func (f IterateFunc) Iterate(r Range) Iterator
type Iterator ¶
type Iterator interface { First() bool Last() bool Next() bool Prev() bool Key() []byte Value() []byte Release() Error() error }
Iterator iterates over kv pairs.
type Range ¶
type Range struct { Start []byte // start of key range (included) Limit []byte // limit of key range (excluded) }
Range is the key range.
type ReleaseFunc ¶
type ReleaseFunc func()
func (ReleaseFunc) Release ¶
func (f ReleaseFunc) Release()
type SnapshotFunc ¶
type SnapshotFunc func() Snapshot
func (SnapshotFunc) Snapshot ¶
func (f SnapshotFunc) Snapshot() Snapshot
Click to show internal directories.
Click to hide internal directories.