boltdb

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBucketsNotExists = fmt.Errorf("bucket tasks doesn't exist")
	ErrItemNotExists    = fmt.Errorf("item doesn't exist")
)

Functions

func NewBoltDB

func NewBoltDB(saveTo ...string) (adapter.Storage, error)

Types

type Bolt

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

func (*Bolt) Close

func (b *Bolt) Close()

func (*Bolt) Delete

func (b *Bolt) Delete(id string) error

func (*Bolt) ForEach

func (b *Bolt) ForEach(f func(id string, info []byte) bool) error

func (*Bolt) Get

func (b *Bolt) Get(id string) (info []byte, err error)

func (*Bolt) Store

func (b *Bolt) Store(id string, info []byte) error

Jump to

Keyboard shortcuts

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