api

package
v1.6.1-0...-5e9cea2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Unlicense Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addr

func Addr(relativePath string, router *gin.RouterGroup, conf *config.Config)

Addr return current host addr

func BackUp

func BackUp(relativePath string, router *gin.RouterGroup, conf *config.Config)

func CheckFileExist

func CheckFileExist(relativePath string, router *gin.RouterGroup, conf *config.Config)

func CheckFilesExist

func CheckFilesExist(relativePath string, router *gin.RouterGroup, conf *config.Config)

func Download

func Download(relativePath string, router *gin.RouterGroup, conf *config.Config)

func GenGoogleCode

func GenGoogleCode(path string, router *gin.RouterGroup, conf *config.Config)

GenGoogleCode generate google code

func GenGoogleSecret

func GenGoogleSecret(path string, router *gin.RouterGroup, conf *config.Config)

GenGoogleSecret generate google secret

func GetMd5sForWeb

func GetMd5sForWeb(relativePath string, router *gin.RouterGroup, conf *config.Config)

GetMd5sForWeb

func Index

func Index(relativePath string, router *gin.RouterGroup, conf *config.Config)

Index route to upload page

func ListDir

func ListDir(relativePath string, router *gin.RouterGroup, conf *config.Config)

ListDir list all file in given dir

func PeerID

func PeerID(relativePath string, router *gin.RouterGroup, conf *config.Config)

PeerID return current peer id

func Peers

func Peers(relativePath string, router *gin.RouterGroup, conf *config.Config)

Peers return all peer

func Reload

func Reload(relativePath string, router *gin.RouterGroup, conf *config.Config)

TODO

func RemoveEmptyDir

func RemoveEmptyDir(relativePath string, router *gin.RouterGroup, conf *config.Config)

RemoveEmptyDir remove empty dir

func RemoveFile

func RemoveFile(relativePath string, router *gin.RouterGroup, conf *config.Config)

func Repair

func Repair(relativePath string, router *gin.RouterGroup, conf *config.Config)

func RepairFileInfo

func RepairFileInfo(relativePath string, router *gin.RouterGroup, conf *config.Config)

func Report

func Report(relativePath string, router *gin.RouterGroup, conf *config.Config)

Report

func RtMap

func RtMap(relativePath string, router *gin.RouterGroup, conf *config.Config)

PeerID return current peer id

func SceneMap

func SceneMap(relativePath string, router *gin.RouterGroup, conf *config.Config)

PeerID return current peer id

func Search(relativePath string, router *gin.RouterGroup, conf *config.Config)

Notice: performance is poor,just for low capacity,but low memory , if you want to high performance,use searchMap for search,but memory ....

func SearchMap

func SearchMap(relativePath string, router *gin.RouterGroup, conf *config.Config)

PeerID return current peer id

func StatMap

func StatMap(relativePath string, router *gin.RouterGroup, conf *config.Config)

PeerID return current peer id

func SumMap

func SumMap(relativePath string, router *gin.RouterGroup, conf *config.Config)

PeerID return current peer id

func Upload

func Upload(relativePath string, router *gin.RouterGroup, conf *config.Config)

Upload

Types

This section is empty.

Jump to

Keyboard shortcuts

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