controller

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanDirtyPath

func CleanDirtyPath(p string) string

func GetAll

func GetAll(c *fiber.Ctx) error

func GetExt added in v1.3.0

func GetExt(path string) string

func GetResize added in v1.2.0

func GetResize(c *fiber.Ctx) error

func LogPrefix

func LogPrefix(c *fiber.Ctx, status string, addition string)

func MultipartToFile added in v1.4.0

func MultipartToFile(file *multipart.FileHeader) *os.File

func OptionsAll

func OptionsAll(c *fiber.Ctx) error

func PostDelete

func PostDelete(c *fiber.Ctx) error

func PostFolder

func PostFolder(c *fiber.Ctx) error

func PostMove added in v1.3.0

func PostMove(c *fiber.Ctx) error

func PostUpload

func PostUpload(c *fiber.Ctx) error

func PostZip

func PostZip(c *fiber.Ctx) error

func RandStringRunes

func RandStringRunes(n int) string

func WalkAndClear added in v1.3.0

func WalkAndClear(path string)

Types

type FileRow added in v1.2.3

type FileRow struct {
	IsDir    bool
	FullPath string
	Name     string

	Size      int64
	SizeHuman string

	ModTime      time.Time
	ModTimeHuman string
	Md5          string

	IsPreview bool
}

type TreeRow added in v1.3.0

type TreeRow struct {
	Text string `json:"text"`
	Path string `json:"path"`

	Expanded bool `json:"expanded"`

	Nodes []TreeRow `json:"nodes"`
}

func WalkAndTreeBuild added in v1.3.0

func WalkAndTreeBuild(path string, prev_path string, deep int) []TreeRow

Jump to

Keyboard shortcuts

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