db

package
v0.0.0-...-817dee4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BboltDBKVStore

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

func NewBboltDBKVStore

func NewBboltDBKVStore(dbPath string) *BboltDBKVStore

func (*BboltDBKVStore) Bucket

func (b *BboltDBKVStore) Bucket(prefix string) (KVStore, error)

func (*BboltDBKVStore) Close

func (b *BboltDBKVStore) Close() error

func (*BboltDBKVStore) Delete

func (b *BboltDBKVStore) Delete(key []byte) error

func (*BboltDBKVStore) Get

func (b *BboltDBKVStore) Get(key []byte) ([]byte, error)

func (*BboltDBKVStore) Open

func (b *BboltDBKVStore) Open() error

func (*BboltDBKVStore) Put

func (b *BboltDBKVStore) Put(key []byte, value []byte) error

type KVStore

type KVStore interface {
	Open() error
	Close() error
	Get(key []byte) ([]byte, error)
	Put(key []byte, value []byte) error
	Delete(key []byte) error
	Bucket(prefix string) (KVStore, error)
}

Jump to

Keyboard shortcuts

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