Versions in this module Expand all Collapse all v1 v1.4.0-beta3 Oct 18, 2024 v1.4.0-beta2 Oct 1, 2024 v1.4.0-beta1 Oct 1, 2024 v1.1.0 Jun 2, 2024 v1.0.0 Feb 21, 2024 Changes in this version + const ARIA2 + const DEPRECATED + const GITHUB + const GLOBAL + const INDEX + const MaxInt + const MaxUint + const MinInt + const MinUint + const PREVIEW + const PRIVATE + const PUBLIC + const READONLY + const SINGLE + const SITE + const STYLE + func ExtractFolder(objs []Obj, extractFolder string) + func GetThumb(obj Obj) (thumb string, ok bool) + func GetUrl(obj Obj) (url string, ok bool) + func SortFiles(objs []Obj, orderBy, orderDirection string) + func WrapObjsName(objs []Obj) + type APPModel struct + DBPath string + DateFormat string + DateStrFormat string + DateTimeFormat string + LogFileExt string + LogPath string + LogSaveName string + ShellPath string + TimeFormat string + UserDataPath string + type BaseInfo struct + Channel string + DriveModel string + Hash string + Version string + type CasaOSHeart struct + Type string + UuId string + type CommonModel struct + RuntimePath string + type Connections struct + Host string + ID uint + MountPoint string + Password string + Port string + Username string + type DeviceInfo struct + DeviceModel string + DeviceName string + DeviceSN string + Hash string + Initialized bool + LanIpv4 []string + OS_Version string + Port int + type Drive struct + AuthUrl string + Icon string + Name string + type FileItem struct + Finished bool + From string + ProcessedSize int64 + Size int64 + type FileOperate struct + Finished bool + Item []FileItem + ProcessedSize int64 + Style string + To string + TotalSize int64 + Type string + type FileSetting struct + DownloadDir string + ShareDir []string + type FileStream struct + Mimetype string + Old Obj + WebPutAsTask bool + func (f *FileStream) GetMimetype() string + func (f *FileStream) GetOld() Obj + func (f *FileStream) GetReadCloser() io.ReadCloser + func (f *FileStream) NeedStore() bool + func (f *FileStream) SetReadCloser(rc io.ReadCloser) + type FileStreamer interface + GetMimetype func() string + GetOld func() Obj + GetReadCloser func() io.ReadCloser + NeedStore func() bool + SetReadCloser func(io.ReadCloser) + type FileUpdate struct + FileContent string + FilePath string + type FsOtherArgs struct + Data interface{} + Method string + Path string + type GoDaddyModel struct + ApiHost string + Host string + Key string + Secret string + Type uint + type IOCountersStat struct + BytesRecv uint64 + BytesSent uint64 + Dropin uint64 + Dropout uint64 + Errin uint64 + Errout uint64 + Fifoin uint64 + Fifoout uint64 + Name string + PacketsRecv uint64 + PacketsSent uint64 + State string + Time int64 + type Link struct + Data io.ReadCloser + Expiration *time.Duration + FilePath *string + Header http.Header + Method string + Status int + URL string + type LinkArgs struct + Header http.Header + IP string + Type string + type ListArgs struct + ReqPath string + type NotifyMssage struct + Data string + Type string + type Obj interface + GetID func() string + GetName func() string + GetPath func() string + GetSize func() int64 + IsDir func() bool + ModTime func() time.Time + func UnwrapObjs(obj Obj) Obj + func WrapObjName(objs Obj) Obj + type ObjMerge struct + func NewObjMerge() *ObjMerge + func (om *ObjMerge) InitHideReg(hides string) + func (om *ObjMerge) Merge(objs []Obj, objs_ ...Obj) []Obj + func (om *ObjMerge) Reset() + type ObjThumb struct + type ObjThumbURL struct + type ObjWrapName struct + Name string + func (o *ObjWrapName) GetName() string + func (o *ObjWrapName) Unwrap() Obj + type Object struct + ID string + IsFolder bool + Modified time.Time + Name string + Path string + Size int64 + func (o *Object) GetID() string + func (o *Object) GetName() string + func (o *Object) GetPath() string + func (o *Object) GetSize() int64 + func (o *Object) IsDir() bool + func (o *Object) ModTime() time.Time + func (o *Object) SetPath(id string) + type ObjectURL struct + type OtherArgs struct + Data interface{} + Method string + Obj Obj + type PageReq struct + Index int + Size int + func (p *PageReq) Validate() + type PageResp struct + Content interface{} + Total int64 + type Path struct + Date time.Time + Extensions map[string]interface{} + IsDir bool + Label string + Name string + Path string + Size int64 + Type string + Write bool + type Proxy struct + DownProxyUrl string + WebProxy bool + WebdavPolicy string + func (p Proxy) Webdav302() bool + func (p Proxy) WebdavNative() bool + func (p Proxy) WebdavProxy() bool + type RedisModel struct + Host string + IdleTimeout time.Duration + MaxActive int + MaxIdle int + Password string + type Result struct + Data interface{} + Message string + Success int + type SearchEngine struct + Data []string + Icon string + Name string + RecoUrl string + SearchUrl string + type ServerModel struct + HttpPort string + LockAccount bool + RunMode string + ServerApi string + Token string + USBAutoMount string + UpdateUrl string + type SetPath interface + SetPath func(path string) + type SettingItem struct + Flag int + Group int + Help string + Key string + Options string + Type string + Value string + func (s SettingItem) IsDeprecated() bool + type Shares struct + Anonymous bool + ID uint + Path string + type Sort struct + ExtractFolder string + OrderBy string + OrderDirection string + type StorageA struct + Addition string + CacheExpiration int + Disabled bool + Driver string + ID uint + Modified time.Time + MountPath string + Order int + Remark string + Status string + func (s *StorageA) GetStorage() *StorageA + func (s *StorageA) SetStatus(status string) + func (s *StorageA) SetStorage(storage StorageA) + type SysInfoModel struct + Name string + type SystemConfig struct + ConfigPath string + type Thumb interface + Thumb func() string + type Thumbnail struct + Thumbnail string + func (t Thumbnail) Thumb() string + type URL interface + URL func() string + type UnwrapObj interface + Unwrap func() Obj + type Url struct + Url string + func (w Url) URL() string + type UserInfo struct + Avatar string + Desc string + NickName string + ShareId string + Version int + type Version struct + ChangeLog string + CreatedAt time.Time + Id uint + UpdatedAt time.Time + Version string