file

package
v0.0.0-...-f79cf23 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ErrNotExist = errs.Sentinel("file does not exist")
View Source
const (
	// MaxUploadSize is the max file size allowed to be uploaded
	MaxUploadSize int64 = 25 << 20 // 25 MB
)

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.Context, id uu.ID) (err error)

func Download

func Download(w http.ResponseWriter, r *http.Request)

func FileFromID

func FileFromID(ctx context.Context, id uu.ID) (fsfile fs.File, err error)

func IDToDir

func IDToDir(id uu.ID) fs.File

func Upload

func Upload(w http.ResponseWriter, r *http.Request)

func Write

func Write(ctx context.Context, id uu.ID, file fs.FileReader) (fsfile fs.File, err error)

Write stores the file on the filesystem.

Types

This section is empty.

Jump to

Keyboard shortcuts

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