bolt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 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 DB

type DB struct {
	*bbolt.DB
	// contains filtered or unexported fields
}

func New

func New(db *bbolt.DB) (*DB, error)

func Open

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

func (*DB) CreateKV

func (s *DB) CreateKV(ctx context.Context, b []byte, v ...kv.Pair) error

func (*DB) CreateKVFn

func (s *DB) CreateKVFn(ctx context.Context, b []byte, fn func(ctx kv.PutContext) error) error

func (*DB) DeleteKV

func (s *DB) DeleteKV(ctx context.Context, b []byte, v ...[]byte) error

func (*DB) DeleteKVFn

func (s *DB) DeleteKVFn(ctx context.Context, b []byte, fn func(ctx kv.DeleteContext) error) error

func (*DB) ListKV

func (s *DB) ListKV(ctx context.Context, b []byte) (list []kv.Pair, err error)

func (*DB) ListKVFn

func (s *DB) ListKVFn(ctx context.Context, b []byte, fn func(k []byte, v []byte) error) error

func (*DB) ReadKV

func (s *DB) ReadKV(ctx context.Context, b []byte, v ...[]byte) (list []kv.Pair, err error)

func (*DB) ReadKVFn

func (s *DB) ReadKVFn(ctx context.Context, b []byte, fn func(ctx kv.GetContext) error) error

func (*DB) StoreKV

func (s *DB) StoreKV(ctx context.Context, b []byte, v ...kv.Pair) error

func (*DB) StoreKVFn

func (s *DB) StoreKVFn(ctx context.Context, b []byte, fn func(ctx kv.PutContext) error) error

func (*DB) UpdateKV

func (s *DB) UpdateKV(ctx context.Context, b []byte, v ...kv.Pair) error

func (*DB) UpdateKVFn

func (s *DB) UpdateKVFn(ctx context.Context, b []byte, fn func(ctx kv.PutContext) error) error

Jump to

Keyboard shortcuts

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