kv

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BBoltKv

type BBoltKv struct {
	BBkv *bbolt.DB
}

func NewBBolt

func NewBBolt(path string, mode os.FileMode, options *bbolt.Options) (*BBoltKv, error)

https://pkg.go.dev/go.etcd.io/bbolt#readme-bbolt db, err := bolt.Open("my.db", 0600, nil)

func (*BBoltKv) CreateBucket

func (bb *BBoltKv) CreateBucket(bkt string) error

func (*BBoltKv) GetByStrKeyValueJson

func (bb *BBoltKv) GetByStrKeyValueJson(bkt string, k string, v interface{}) error

func (*BBoltKv) GetLast

func (bb *BBoltKv) GetLast(bkt string, va ViewValueCallBack) error

func (*BBoltKv) GteInter

func (bb *BBoltKv) GteInter(bkt string, va ViewValueCallBack) error

func (*BBoltKv) PutWithBkt

func (bb *BBoltKv) PutWithBkt(bkt string, k, v []byte) error

func (*BBoltKv) PutWithBktByteKeyJson

func (bb *BBoltKv) PutWithBktByteKeyJson(bkt string, k []byte, v interface{}) error

func (*BBoltKv) PutWithBktManyJson

func (bb *BBoltKv) PutWithBktManyJson(bkt string, mp map[string]interface{}) error

func (*BBoltKv) PutWithBktStrKey

func (bb *BBoltKv) PutWithBktStrKey(bkt string, k string, v []byte) error

func (*BBoltKv) PutWithBktStrKeyJson

func (bb *BBoltKv) PutWithBktStrKeyJson(bkt string, k string, v interface{}) error

type ViewValueCallBack

type ViewValueCallBack func(k, v []byte) error

Jump to

Keyboard shortcuts

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