Documentation ¶
Index ¶
- Constants
- func ChangeHashPrefix(hashPrefix int) bool
- func ChangeMaxFileSize(size int) bool
- func ChangePassword(oldPassword string, newPassword string) (success bool)
- func ChangeTokenTtl(tokenTtl int64) bool
- func DeleteFile(filename string) (result bool, reason string)
- func ListFilesByCondition(filename string, extension string, labels []string, tags []string, ...) map[string]any
- func Login(password string) (success bool, isFirst bool, token string)
- func ModifyFile(nasuFile db.NasuFile) bool
- func OverallExtensionInfo() (resultMap map[string]int)
- func OverallFileInfo() (resultSlice []string)
- func OverallLabelInfo() (resultMap map[string]int)
- func OverallTagInfo() (resultMap map[string]int)
- func UploadFile(file *multipart.FileHeader, filename string, labels []string, tags []string, ...) (success bool, reason string)
Constants ¶
View Source
const DEFAULT_PASSWORD = "21232f297a57a5a743894a0e4a801fc3"
Variables ¶
This section is empty.
Functions ¶
func ChangeHashPrefix ¶
func ChangeMaxFileSize ¶
func ChangePassword ¶
func ChangeTokenTtl ¶
func DeleteFile ¶
func ListFilesByCondition ¶
func ModifyFile ¶
func OverallExtensionInfo ¶
func OverallFileInfo ¶
func OverallFileInfo() (resultSlice []string)
func OverallLabelInfo ¶
func OverallTagInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.