Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { Get(key []byte) (value []byte, err error) Put(key []byte, value []byte) error Delete(key []byte) error Close() error NewIterator(startKey, endKey []byte) Iterator // 批量写入,提交时保证batch里的修改同时对外可见 NewBatch() Batch GetSnapshot() (Snapshot, error) }
Driver
Click to show internal directories.
Click to hide internal directories.