filesystem

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route

func Route(root iris.Party)

Types

type DeleteFileReq

type DeleteFileReq struct {
	Path []string `json:"path,omitempty"`
	Name string   `json:"name,omitempty"`
}

type ExplorerReq

type ExplorerReq struct {
	Path []string `json:"path,omitempty"`
}

type ExplorerResp

type ExplorerResp struct {
	app.Response
	Folders []string   `json:"folders,omitempty"`
	Files   []FileInfo `json:"files,omitempty"`
}

type FileInfo

type FileInfo struct {
	Name string `json:"name,omitempty"`
	Ext  string `json:"ext,omitempty"`
}

type SaveFileReq

type SaveFileReq struct {
	Path []string `json:"path,omitempty"` // 文件夹路径
	Name string   `json:"name,omitempty"` // 名称, 如果空,会使用src的名称覆盖
	Src  string   `json:"src,omitempty"`  // 原文件
	Hash bool     `json:"hash,omitempty"` // 是否使用hash名称, 会覆盖Name
}

type UploadItemResp added in v1.0.4

type UploadItemResp struct {
	Path string `json:"path,omitempty"`
	Web  string `json:"web,omitempty"`
	File string `json:"file,omitempty"`
}

type UploadResp

type UploadResp struct {
	app.Response
	Items []UploadItemResp `json:"items,omitempty"`
}

Jump to

Keyboard shortcuts

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