engine

package
v0.0.0-...-7b990d8 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotExist = errors.New("Not Exist")
)

Functions

This section is empty.

Types

type Batch

type Batch interface {
	Cancel() error
	Commit() error
	Del([]byte) error
	Set([]byte, []byte) error
}

type DB

type DB interface {
	Sync() error
	Close() error
	NewBatch() (Batch, error)
	NewSnapshot() (Snapshot, error)
	NewIterator([]byte) (Iterator, error)

	Del([]byte) error
	Set([]byte, []byte) error
	Get([]byte) ([]byte, error)
}

type Iterator

type Iterator interface {
	Next() error
	Valid() bool
	Close() error
	Seek([]byte) error
	Key() []byte
	Value() ([]byte, error)
}

type Snapshot

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

Directories

Path Synopsis
pb
s3

Jump to

Keyboard shortcuts

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