bolt

package module
v0.0.0-...-aae2377 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 8 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 = bolt.DB

func Open

func Open(path string) (*DB, error)

type Storage

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

func NewStorage

func NewStorage(db *DB, bucket string) *Storage

func (Storage) Delete

func (s Storage) Delete(_ context.Context, refs ...string) error

func (Storage) Get

func (s Storage) Get(_ context.Context, ref string) blob.Blob

func (*Storage) Iter

func (s *Storage) Iter(ctx context.Context, state rx.Lens[string]) rx.Iter[blob.RefBlob]

func (Storage) Set

func (s Storage) Set(_ context.Context, ref string, r io.Reader) error

Jump to

Keyboard shortcuts

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