Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnFileRemovedDB ¶
OnFileRemovedDB : just change the status to 2
func UpdateFileMetaDB ¶
UpdateFileMetaDB : add/update file meta to mysql
Types ¶
type ByUploadTime ¶
type ByUploadTime []FileMeta
func (ByUploadTime) Len ¶
func (a ByUploadTime) Len() int
func (ByUploadTime) Less ¶
func (a ByUploadTime) Less(i, j int) bool
func (ByUploadTime) Swap ¶
func (a ByUploadTime) Swap(i, j int)
type FileMeta ¶
type FileMeta struct { FileSha1 string FileName string FileSize int64 Location string UploadAt string }
FileMeta : file meta struct
func GetFileMeta ¶
GetFileMeta : get meta by sha1
func GetLastFileMetas ¶
GetLastFileMetas : get many files' meta
func GetLastFileMetasDB ¶
GetLastFileMetasDB : get the list of meta from mysql -> format(FileMeta)
Click to show internal directories.
Click to hide internal directories.