kv

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const LevelDB = "leveldb"
View Source
const Mem = "mem"
View Source
const (
	NutsDB = "nutsdb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Name() string
	Get(key []byte) ([]byte, bool)
	Set(key, value []byte) error
	Dels(keys ...[]byte) error
	ScanValues(prefix []byte) (map[string][]byte, error)
}

func NewLevelDBClient

func NewLevelDBClient(config Config) (Client, error)

func NewMemClient

func NewMemClient(config Config) (Client, error)

func NewNutsClient

func NewNutsClient(config Config) (Client, error)

type Config

type Config struct {
	FsID      string
	Driver    string
	CachePath string
}

Jump to

Keyboard shortcuts

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