handles

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUpload

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

@Title UploadFile @Description Upload a file @Param file form file true "File" @Param body body core.Upload true "body for upload content" @Success 200 {map[string]string} map[string]string @Failure 403 body is empty @router / [post]

func DeleteUpload

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

@router /:uploadKey [delte]

func Download

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

@Title GetFile @Description Gets the requested file only @Param uploadID path int64 true "ID of the file you require" @Success 200 {[]byte} []byte @router /file/:uploadKey [get]

func GetUploads

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

func SearchUploads

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

@Title GetUploads @Description Gets the uploads @Success 200 {[]core.Upload} []core.Upload @router /all/:pagesize [get]

func SetupRoutes

func SetupRoutes(issuer, audience string) http.Handler

func ViewUpload

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

ViewUpload

Types

This section is empty.

Jump to

Keyboard shortcuts

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