embedded

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bolted

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

func Open

func Open(path string, mode os.FileMode, options Options) (*Bolted, error)

func (*Bolted) BeginRead

func (b *Bolted) BeginRead() (bolted.ReadTx, error)

func (*Bolted) BeginWrite

func (b *Bolted) BeginWrite() (bolted.WriteTx, error)

func (*Bolted) Close

func (b *Bolted) Close() error

func (*Bolted) Observe

func (b *Bolted) Observe(path dbpath.Matcher) (<-chan bolted.ObservedChanges, func())

func (*Bolted) Stats added in v0.8.2

func (b *Bolted) Stats() (*bbolt.Stats, error)

type Options added in v0.9.0

type Options struct {
	bbolt.Options
	WriteDecorators []WriteTxDecorator
}

type WriteTxDecorator

type WriteTxDecorator func(tx bolted.WriteTx) bolted.WriteTx

Jump to

Keyboard shortcuts

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