boltdb

package
v0.0.0-...-fa626c8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New(filepath string) (*Storage, error)

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, hashValue []byte) (io.ReadCloser, error)

func (*Storage) List

func (s *Storage) List() (storage.IteratorFunc, storage.CancelFunc)

func (*Storage) Put

func (s *Storage) Put(ctx context.Context, r io.Reader) ([]byte, int64, error)

func (*Storage) Remove

func (s *Storage) Remove(ctx context.Context, hashValue []byte) error

Jump to

Keyboard shortcuts

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