boltdb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = bbolt.Options{
	Timeout: 1 * time.Second,
}

Functions

This section is empty.

Types

type Bolt

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

func New

func New() *Bolt

func (*Bolt) Close

func (bolt *Bolt) Close() error

func (*Bolt) Delete

func (bolt *Bolt) Delete(key string) error

func (*Bolt) Get

func (bolt *Bolt) Get(key string, result interface{}, bucket string) error

func (*Bolt) GetAll

func (bolt *Bolt) GetAll(bucket string) ([][]byte, error)

func (*Bolt) GetAllByName

func (bolt *Bolt) GetAllByName(id string, bucket string) ([][]byte, error)

func (*Bolt) GetLastByName

func (bolt *Bolt) GetLastByName(id string, bucket string) ([]byte, error)

func (*Bolt) GetMachine

func (bolt *Bolt) GetMachine(key string) (interface{}, error)

func (*Bolt) GetSystem

func (bolt *Bolt) GetSystem(key string) (interface{}, error)

func (*Bolt) Set

func (bolt *Bolt) Set(key string, value interface{}, bucket string) error

func (*Bolt) SetBucket

func (bolt *Bolt) SetBucket(name string) error

Jump to

Keyboard shortcuts

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