Versions in this module Expand all Collapse all v0 v0.0.9 Jul 3, 2026 Changes in this version + func InitTestDB(t *testing.T) *gorm.DB v0.0.7 Dec 4, 2025 v0.0.6 Dec 4, 2025 v0.0.5 Nov 9, 2025 Changes in this version + type Task struct + CancelRequested int + Concurrency int + Data string + DownloadedBytes int64 + ETASeconds int64 + Error string + Hostname string + ID string + Identity string + PID int + Progress float64 + SpeedBPS int64 + StartTime string + Status string + TotalBytes int64 + Type string + UpdateTime string + Version int + func NewTask(id, typ, identity string, totalBytes int64, pid int, hostname string, ...) *Task + func (Task) TableName() string + type TaskChild struct + Downloaded int64 + Error string + ID int64 + Name string + Path string + Size int64 + Status string + TaskID string + UpdateTime string + func (TaskChild) TableName() string v0.0.4 Nov 1, 2025 v0.0.3 Oct 31, 2025 Changes in this version + type UploadHistory struct + CTime uint64 + Category int32 + FSID uint64 + LocalMD5 string + MD5 string + MTime uint64 + Path string + ServerFilename string + Size uint64 + func FindUploadHistoryByLocalMD5(md5 string) *UploadHistory + func (UploadHistory) TableName() string v0.0.1 Sep 23, 2025 Changes in this version + var ErrRecordNotFound = gorm.ErrRecordNotFound + func CloseDB() error + func DeleteById[T any](id int) *gorm.DB + func FindFirstByID[T any](id int) *T + func FindItems[T any]() []*T + func GetDB() *gorm.DB + func InitDB() + func InitSqlite() + func Save(value interface{}) *gorm.DB + func ToList(items []*Quick) []list.Item + type File struct + Category int + Dir string + Dlink string + FSID uint64 + FileType int + Filename string + ID uint64 + IsRefresh int + IsSelect bool + Level int + LocalCTime int64 + LocalMTime int64 + MD5 string + Path string + ServerCTime int64 + ServerFilename string + ServerMTime int64 + Size int + func FindFilesByDir(dir string, page int) []*File + func FindFilesPrefixPath(path string, isDir bool) []*File + func FindFirstByPath(path string) *File + func FindNeedRefreshFiles(path string) []*File + func NewFile(f *bdpan.FileInfo) *File + func NewFiles(files []*bdpan.FileInfo) []*File + func NewRootFile() *File + func (File) TableName() string + func (f *File) Fill() *File + func (f *File) Resave() *gorm.DB + func (f *File) Save() *gorm.DB + func (f *File) ToQuick() *Quick + type ORMModel struct + CreateTime time.Time + IsDelete int8 + UpdateTime time.Time + func (o *ORMModel) Init() + func (o ORMModel) IsNil() bool + type Pan struct + Expire bool + Free int64 + ID int + Total int64 + Used int64 + func NewPan(id int, pan *bdpan.GetPanInfoRes) *Pan + type Quick struct + Filename string + ID uint64 + Key string + Path string + func (Quick) TableName() string + func (q Quick) Description() string + func (q Quick) FilterValue() string + func (q Quick) Title() string + type User struct + AvatarUrl string + BaiduName string + ID int + NetdiskName string + Uk int + VipName string + VipType int32 + func NewUser(user *bdpan.GetUserInfoRes) *User