kvdb

package
v0.0.0-...-303e327 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KvDB

type KvDB struct {
	kvstore.KVStore
}

func Open

func Open(path string, isSync bool, dbOpts ...kvstore.DbOptions) (*KvDB, error)

func (*KvDB) Close

func (t *KvDB) Close() error

func (*KvDB) GetAllCfNames

func (t *KvDB) GetAllCfNames() []string

type KvTable

type KvTable struct {
	// contains filtered or unexported fields
}

func OpenKvTable

func OpenKvTable(db kvstore.KVStore) (*KvTable, error)

func (*KvTable) Delete

func (t *KvTable) Delete(key []byte) error

func (*KvTable) Get

func (t *KvTable) Get(key []byte) ([]byte, error)

func (*KvTable) List

func (t *KvTable) List(args *clustermgr.ListKvOpts) ([]*clustermgr.KeyValue, error)

func (*KvTable) Set

func (t *KvTable) Set(key []byte, value []byte) error

Jump to

Keyboard shortcuts

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