engine

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: BSD-2-Clause Imports: 0 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 interface {
	Get(key []byte) ([]byte, error)
	Set(key []byte, value []byte) error
	Del(key []byte) error
	Iterate(opt *PrefixIteratorOption, handle func([]byte, []byte) error) error
	Commit() error
	Reset()
	Close()
}

type PrefixIteratorOption

type PrefixIteratorOption struct {
	Prefix []byte

	Offset int32
	Limit  uint32
}

type Store

type Store interface {
	NewBatch() Batch
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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