Documentation ¶
Index ¶
- func OnFileUploadFinished(filehash string, filename string, filesize int64, fileaddr string) bool
- func OnUserFileUploadFinished(username, filehash, filename string, filesize int64) bool
- func UpdateFileLocation(filehash string, fileaddr string) bool
- func UpdateToken(username string, token string) bool
- func UserSignin(username string, encpwd string) bool
- func UserSignup(username string, passwd string) bool
- type TableFile
- type User
- type UserFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnFileUploadFinished ¶
OnFileUploadFinished : 文件上传完成,保存meta
func OnUserFileUploadFinished ¶
OnUserFileUploadFinished : 更新用户文件表
func UpdateFileLocation ¶
UpdateFileLocation : 更新文件的存储地址(如文件被转移了)
func UserSignup ¶
UserSignup : 通过用户名及密码完成user表的注册操作
Types ¶
type TableFile ¶
type TableFile struct { FileHash string FileName sql.NullString FileSize sql.NullInt64 FileAddr sql.NullString }
TableFile : 文件表结构体
func GetFileMeta ¶
GetFileMeta : 从mysql获取文件元信息
func GetFileMetaList ¶
GetFileMetaList : 从mysql批量获取文件元信息
Click to show internal directories.
Click to hide internal directories.