kvDatabase

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDriver

type IDriver interface {
	Close()

	Put(kv KVItem) (err error)
	Get(k []byte) (kv KVItem, err error)
	Delete(k []byte) (err error)
	Check(k []byte) (exists bool, err error)

	BatchPut(kvList []KVItem) (err error)
	BatchGet(kList [][]byte) (kvList []KVItem, err error)
	BatchDelete(kList [][]byte) (err error)
	BatchCheck(kList [][]byte) (kvList []KVItem, err error)

	Traversal(condition []byte) (kvList []KVItem)

	Stat() (state interface{}, err error)
}

type KVItem

type KVItem struct {
	Key    []byte
	Data   []byte
	Exists bool
}

Jump to

Keyboard shortcuts

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