src

package
v0.0.0-...-358db75 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const FilePath = "./file/"
View Source
const ShareMapPath = "./config/share_map.data"

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(ctx iris.Context)
func DeleteShareLink(ctx iris.Context)

func GetDelete

func GetDelete(ctx iris.Context)

func GetFileList

func GetFileList(ctx iris.Context)

func GetShareFile

func GetShareFile(ctx iris.Context)
func GetShareLink(ctx iris.Context)

func IsExist

func IsExist(path string) bool

func IsLog

func IsLog(ctx iris.Context)

func PostDownload

func PostDownload(ctx iris.Context)

func PostLogin

func PostLogin(ctx iris.Context)

func PostLogout

func PostLogout(ctx iris.Context)

func PostUpload

func PostUpload(ctx iris.Context)

Types

type FileInfo

type FileInfo struct {
	FileName string `json:"file_name"`
	FileSize int64  `json:"file_size"`
	FileType bool   `json:"file_type"`
	IsShare  bool   `json:"is_share"`
}

type FileList

type FileList struct {
	List []FileInfo `json:"list"`
}

type LinkInfo

type LinkInfo struct {
	Link string `json:"link"`
}

Jump to

Keyboard shortcuts

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