dbase

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValuePair

type KeyValuePair struct {
	Key   []byte
	Value []byte
}

type Repository

type Repository interface {
	CreateBucket(name []byte) error
	FetchBuckets() ([][]byte, error)
	DeleteBucket(name []byte) error
	GetAllData(name []byte) ([]KeyValuePair, error)
	Get(bucket, key []byte) ([]byte, error)
	Set(bucket, key, value []byte) error
	Delete(bucket, key []byte) error
}

func NewBoltDBRepository

func NewBoltDBRepository(db *bbolt.DB) Repository

Jump to

Keyboard shortcuts

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