boltkv

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TargetKeyNotFoundError = errors.New("target key not found")
	TargetKeyExpiredError  = errors.New("target key expired")
)

Functions

func IsDbExist

func IsDbExist(name string, dir string) (bool, error)

Types

type BoltStore

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

func InitBoltStore

func InitBoltStore(name string, dir string) (*BoltStore, error)

func (BoltStore) Close

func (s BoltStore) Close() error

func (BoltStore) Delete

func (s BoltStore) Delete(k string) error

func (BoltStore) Get

func (s BoltStore) Get(k string, v interface{}) error

func (BoltStore) GetUseGob

func (s BoltStore) GetUseGob(k string, v interface{}) error

func (BoltStore) Set

func (s BoltStore) Set(k string, v interface{}) error

func (BoltStore) SetUseGob

func (s BoltStore) SetUseGob(k string, v interface{}) error

Jump to

Keyboard shortcuts

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