Documentation
¶
Index ¶
- func IsFileUploaded(filehash string) bool
- func OnFileRemoved(filehash string) bool
- func OnFileUploadFinished(filehash string, filename string, filesize int64, fileaddr string) bool
- func OnUserFileUploadFinished(username, filehash, filename string, filesize int64) bool
- func UpdateToken(username string, token string) bool
- func UserSignUp(username string, passwd string) bool
- func UserSignin(username string, encpwd string) bool
- func UserTokenVerify(username string, token string) bool
- type TableFile
- type User
- type UserFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnFileRemoved ¶
OnFileRemoved : delete file (just change status=2)
func OnFileUploadFinished ¶
func UpdateToken ¶
UpdateToken: Update the token when a user logins
func UserSignUp ¶
Types ¶
type TableFile ¶
type TableFile struct {
FileHash string
FileName sql.NullString
FileSize sql.NullInt64
FileAddr sql.NullString
}
TableFile
func GetFileMeta ¶
func GetFileMetaList ¶
GetFileMetaList : get the list of meta from mysql
Click to show internal directories.
Click to hide internal directories.