Documentation
¶
Index ¶
- Constants
- func Init() error
- type CdnCacheFolder
- func (cf *CdnCacheFolder) AddCacheUsedSize(size int64)
- func (cf *CdnCacheFolder) CheckFolder(checkLimitGB int) error
- func (cf *CdnCacheFolder) GetCacheFileSaveFolderPath() string
- func (cf *CdnCacheFolder) GetFreeSize() int64
- func (cf *CdnCacheFolder) GetMesonCacheUsedSize() int64
- func (cf *CdnCacheFolder) ReduceCacheUsedSize(size int64)
- func (cf *CdnCacheFolder) SetCacheUsedSize(size int64)
- func (cf *CdnCacheFolder) SyncCacheFolderSize()
Constants ¶
View Source
const CacheFileFolder = "files"
View Source
const SpaceHolderFolder = "spaceholder"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CdnCacheFolder ¶
type CdnCacheFolder struct { Abs_path string //absolute folder path of the root folder Cache_provide_size int64 //size cdn cache can use in byte Cache_used_size int64 //size cdn cache used in byte // contains filtered or unexported fields }
func GetInstance ¶
func GetInstance() *CdnCacheFolder
func (*CdnCacheFolder) AddCacheUsedSize ¶
func (cf *CdnCacheFolder) AddCacheUsedSize(size int64)
func (*CdnCacheFolder) CheckFolder ¶
func (cf *CdnCacheFolder) CheckFolder(checkLimitGB int) error
func (*CdnCacheFolder) GetCacheFileSaveFolderPath ¶
func (cf *CdnCacheFolder) GetCacheFileSaveFolderPath() string
func (*CdnCacheFolder) GetFreeSize ¶
func (cf *CdnCacheFolder) GetFreeSize() int64
func (*CdnCacheFolder) GetMesonCacheUsedSize ¶
func (cf *CdnCacheFolder) GetMesonCacheUsedSize() int64
func (*CdnCacheFolder) ReduceCacheUsedSize ¶
func (cf *CdnCacheFolder) ReduceCacheUsedSize(size int64)
func (*CdnCacheFolder) SetCacheUsedSize ¶
func (cf *CdnCacheFolder) SetCacheUsedSize(size int64)
func (*CdnCacheFolder) SyncCacheFolderSize ¶
func (cf *CdnCacheFolder) SyncCacheFolderSize()
Click to show internal directories.
Click to hide internal directories.