engine

package
v0.0.0-...-5f09003 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 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 Engine

type Engine interface {
	Reader()
	ReaderAt(timestamp Timestamp)
	Writer()
	WriterAt(timestamp Timestamp)
}

type Iterator

type Iterator interface {
	Item() (k []byte, value []byte)
	Valid() bool
	Next()
}

type KvBatchWriter

type KvBatchWriter interface {
	Do(b WriteBatch) error
}

type KvReader

type KvReader interface {
	Get(k []byte) SliceResult
	MultiGet(k [][]byte) []SliceResult
	Scan(k []byte, prefixIsKey bool) Iterator
}

type KvWriter

type KvWriter interface {
	Put(k []byte, value []byte) error
	Delete(k []byte) error
}

type SliceResult

type SliceResult interface {
	Ok() bool
	Err() error
	Value() []byte
}

type Timestamp

type Timestamp = storagepb.Timestamp

type WriteBatch

type WriteBatch struct {
}

Jump to

Keyboard shortcuts

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