Versions in this module Expand all Collapse all v0 v0.4.4 Nov 3, 2024 Changes in this version + const ARIA2 + const DEPRECATED + const GITHUB + const GLOBAL + const INDEX + 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 + LogFileExt string + LogPath string + LogSaveName string + ShellPath string + type CommonModel struct + RuntimePath string + type DFDiskSpace struct + Available string + Blocks string + FileSystem string + MountedOn string + Type string + UsePercent string + Used string + type DiskChildren struct + Format string + Name string + Size uint64 + Supported bool + type DiskStatus struct + Avail uint64 + Health bool + Size uint64 + Used uint64 + type Drive struct + Children []DiskChildren + ChildrenNumber int + DiskType string + Health string + Model string + Name string + NeedFormat bool + Path string + Serial string + Size uint64 + Supported bool + Temperature int + 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 FsOtherArgs struct + Data interface{} + Method string + Path string + type LSBLKModel struct + Children []LSBLKModel + DiskType string + EndSector uint64 + FSAvail json.Number + FSSize json.Number + FSUse string + FSUsed json.Number + Format string + FsType string + Health string + HotPlug bool + Label string + MinIO uint64 + Model string + MountPoint string + Name string + PTUUID string + PartUUID string + Path string + PhySec int + RM bool + RO bool + Rev string + Rota bool + Serial string + Size uint64 + StartSector uint64 + State string + SubSystems string + Temperature int + Tran string + Type string + UUID string + UsedPercent float64 + Vendor string + func (m *LSBLKModel) GetMountPoint(name string) string + 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 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 Proxy struct + DownProxyUrl string + WebProxy bool + WebdavPolicy string + func (p Proxy) Webdav302() bool + func (p Proxy) WebdavNative() bool + func (p Proxy) WebdavProxy() bool + type ServerModel struct + EnableMergerFS string + USBAutoMount 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 SmartctlA struct + AtaSmartData struct{ ... } + Device struct{ ... } + FirmwareVersion string + ModelName string + PowerCycleCount int + PowerOnTime struct{ ... } + SerialNumber string + SmartStatus struct{ ... } + Smartctl struct{ ... } + Temperature struct{ ... } + UserCapacity struct{ ... } + type Sort struct + ExtractFolder string + OrderBy string + OrderDirection string + type Storage struct + Avail string + DriveName string + Label string + MountPoint string + Path string + PersistedIn string + Size string + Type string + UUID string + Used 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 Storages struct + Children []Storage + DiskName string + Path string + Size uint64 + Type string + type Thumb interface + Thumb func() string + type Thumbnail struct + Thumbnail string + func (t Thumbnail) Thumb() string + type URL interface + URL func() string + type USBChildren struct + Avail uint64 + MountPoint string + Name string + Size uint64 + type USBDriveStatus struct + Avail uint64 + Children []USBChildren + Model string + Name string + Size uint64 + type UnwrapObj interface + Unwrap func() Obj + type Url struct + Url string + func (w Url) URL() string