backends

package
v0.0.1-0...-1b1769d Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Name() string
	List() ([]string, error)
	Read(id string) (io.ReadCloser, error)
	ReadMetadata(id string) (string, string, int64, time.Time, error)
	Write(id string, r io.ReadSeeker, filename string, mimetype string) (int64, error)
	Delete(id string) error
	Serve(w http.ResponseWriter, r *http.Request, id string, filename string, mimetype string, timestamp time.Time, attachment bool) error
}

func Lookup

func Lookup(dir string, s3Options s3.S3Options) (Backend, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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