handlers

package
v0.0.0-...-f113028 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package handlers api handlers are here

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFile

func DeleteFile(c echo.Context) error

DeleteFile simply delete a file @Summary Delete file @Description UploaDeleted file @ID file.delete @Param dir path string true "directory for file" @Param filename path string true "name for file" @Success 200 {string} string "ok" @Router /{dir}/{filename} [delete]

func DownloadFile

func DownloadFile(c echo.Context) error

DownloadFile simply downloads file @Summary Download file @Description Upload file @ID file.download @Param dir path string true "directory for file" @Param filename path string true "name for file" @Success 200 {string} string "ok" @Router /{dir}/{filename} [get]

func UploadFile

func UploadFile(c echo.Context) error

UploadFile simply uploads file @Summary Upload file @Description Upload file @ID file.upload @Accept multipart/form-data @Param data formData file true "file to upload" @Param dir path string true "directory for file" @Param filename path string true "name for file" @Success 200 {string} string "ok" @Router /{dir}/{filename} [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

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