Documentation ¶
Index ¶
- Constants
- type FolderConfig
- type FolderMgr
- func (fm *FolderMgr) AddCacheUsedSize(folderId uint32, size int64) error
- func (fm *FolderMgr) AddProvideFolder(absPath string, size int) error
- func (fm *FolderMgr) DeleteRemovedProvideFolder(onCachedFileDeleted func(deletedFileNameHash []string) error, ...) error
- func (fm *FolderMgr) GetFolderAbsPath(folderId uint32) (string, error)
- func (fm *FolderMgr) GetRandomFolderToSave() (folderAbsPath string, folderId uint32, err error)
- func (fm *FolderMgr) GetSpaceInfo() (total int64, used int64, free int64)
- func (fm *FolderMgr) ReduceCacheUsedSize(folderId uint32, size int64) error
- type ProvideFolder
Constants ¶
View Source
const CacheFileFolder = "mesonfiles"
View Source
const FreeSpaceLine = 1 * 1024 * 1024 * 1024 //1GB
View Source
const SpaceHolderFolder = "spaceholder"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FolderConfig ¶
type FolderMgr ¶
type FolderMgr struct { FolderMap map[uint32]*ProvideFolder // contains filtered or unexported fields }
func (*FolderMgr) AddCacheUsedSize ¶
func (*FolderMgr) AddProvideFolder ¶
func (*FolderMgr) DeleteRemovedProvideFolder ¶
func (*FolderMgr) GetFolderAbsPath ¶
func (*FolderMgr) GetRandomFolderToSave ¶
func (*FolderMgr) GetSpaceInfo ¶
type ProvideFolder ¶
type ProvideFolder struct { model.Folder ProvideSize int64 MesonCacheUsedSize int64 // contains filtered or unexported fields }
func (*ProvideFolder) CheckFolder ¶
func (pd *ProvideFolder) CheckFolder(checkLimitGB int) error
Click to show internal directories.
Click to hide internal directories.