db

package
v0.0.0-...-6aa75b9 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExists = errors.New("db: exists")
View Source
var ErrInvalidChunkID = errors.New("db: invalid chunk id")
View Source
var ErrInvalidChunkSize = errors.New("db: invalid chunk-size")
View Source
var ErrNotFound = errors.New("db: not found")

Functions

This section is empty.

Types

type DB

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

func New

func New(badger *badger.DB) *DB

func (*DB) CreateImage

func (db *DB) CreateImage(image *model.Image) error

func (*DB) PutChunk

func (db *DB) PutChunk(chunk *model.Chunk) error

func (*DB) WriteImageTo

func (db *DB) WriteImageTo(sha256 string, dst io.Writer) error

Jump to

Keyboard shortcuts

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