bolt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bolt

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

func NewBolt

func NewBolt(path string) (*Bolt, error)

func (*Bolt) Backup

func (b *Bolt) Backup(path string) error

func (*Bolt) Close

func (b *Bolt) Close() error

func (*Bolt) CreateBucket

func (b *Bolt) CreateBucket(bucket []byte) error

func (*Bolt) Delete

func (b *Bolt) Delete(bucket, key []byte) error

func (*Bolt) DeleteBucket

func (b *Bolt) DeleteBucket(bucket []byte) error

func (*Bolt) FindAll

func (b *Bolt) FindAll(bucket []byte) (map[string][]byte, error)

func (*Bolt) FindWithPrefix

func (b *Bolt) FindWithPrefix(bucket, prefix []byte) (map[string][]byte, error)

func (*Bolt) Get

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

func (*Bolt) GetDB

func (b *Bolt) GetDB() *bbolt.DB

func (*Bolt) IntToByte

func (b *Bolt) IntToByte(v int) []byte

func (*Bolt) ListBuckets

func (b *Bolt) ListBuckets() ([]string, error)

func (*Bolt) Open

func (b *Bolt) Open(path string) error

func (*Bolt) Put

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

Jump to

Keyboard shortcuts

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