bbolt

package
v0.0.0-...-c7a1919 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 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 Database

type Database struct {
	Db *bbolt.DB
}

func CreateDatabase

func CreateDatabase(name string) (*Database, error)

func (*Database) CreateBucket

func (bdb *Database) CreateBucket(name string) error

func (*Database) CreatedNestedBucket

func (bdb *Database) CreatedNestedBucket(name string, nestedName string) error

Should really make something smarter than this but it will do for now (for managing data in nested app buckets)

func (*Database) GetNestedValue

func (bdb *Database) GetNestedValue(name string, nestedName string, key string) ([]byte, error)

func (*Database) GetValue

func (bdb *Database) GetValue(name string, key string) ([]byte, error)

func (*Database) UpdateNestedValue

func (bdb *Database) UpdateNestedValue(name string, nestedName string, key string, value []byte) error

func (*Database) UpdateValue

func (bdb *Database) UpdateValue(name string, key string, value []byte) error

Jump to

Keyboard shortcuts

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