handle

package
v0.0.0-...-23b1f24 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExists = Error{40301, fmt.Errorf("duplicate names")}
)

Functions

func WarpF

func WarpF(f func(c *gin.Context) (int, error)) gin.HandlerFunc

Types

type CopyFileF

type CopyFileF F

func CopyFile

func CopyFile(fs afero.Fs) CopyFileF

type DeleteF

type DeleteF F

func Delete

func Delete(fs afero.Fs) DeleteF

type DownloadF

type DownloadF F

func Download

func Download(fs afero.Fs) DownloadF

type Error

type Error struct {
	Code   int   `json:"code"`
	RawErr error `json:"error"`
}

func (Error) Error

func (err Error) Error() string

type F

type F func(c *gin.Context) (int, error)

type ListF

type ListF F

func List

func List(fs afero.Fs) ListF

type MkdirF

type MkdirF F

func Mkdir

func Mkdir(fs afero.Fs) MkdirF

type MoveF

type MoveF F

func Move

func Move(fs afero.Fs) MoveF

type UploadF

type UploadF F

func Upload

func Upload(fs afero.Fs) UploadF

type WebDavH

type WebDavH gin.HandlerFunc

func Webdav

func Webdav(root mfs.RootDIR) WebDavH

Jump to

Keyboard shortcuts

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