filestore

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type StorageBackend

type StorageBackend interface {
	// Upload stores the content of r at path
	Upload(path string, r io.ReadSeeker) error

	// Download fetches the content stored at path and writes it to w or returns an error
	//
	// If path is not found (wrapped) error ErrNotFound is returned
	Download(path string, w io.WriterAt) error
}

StorageBackend is the interface implemented by storage backends

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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