Documentation
¶
Index ¶
- Constants
- func CleanTmpFolder(tmpFolder string) bool
- func ConvertInterfaceToByteArrayValue(key string, v interface{}) ([]byte, error)
- func CopySingleFile(srcFile, dstFile string) error
- func CopySymLink(source, dest string) error
- func CopyWholeFolder(src string, dest string) error
- func CreateIfNotExists(dir string, perm os.FileMode) error
- func CreateOrCleanDir(dir string, perm os.FileMode) error
- func DeleteAllSavedFiles(dirName string, fileName string) bool
- func DeleteAllSavedFilesExceptZero(dirName string, fileName string) bool
- func DeleteFileIfExists(fileName string) bool
- func DeleteLastSavedFile(dirName string, fileName string, count int) bool
- func EnsureFolderForUsualFileToBeSaved(fileName string)
- func Exists(filePath string) bool
- func GetCacheByteArrayValue(key string) ([]byte, error)
- func GetCacheFloat64Value(key string) (float64, error)
- func GetCacheInt64Value(key string) (int64, error)
- func GetCacheLocalFileInfo(folder string, item string) (folderFile string)
- func GetCacheStringValue(key string) (string, error)
- func GetCacheValue(key string) (interface{}, error)
- func GetFirstExistingPath(paths ...string) string
- func GetFolderLastPartName(name string) string
- func GetFolderNameWithoutLastPart(name string) string
- func GetFolderNameWithoutLastSlash(name string) string
- func GetGroupByKey(key string) (grp string, item string)
- func GetLastSavedFileName(dirName string, fileName string) string
- func GetNextSaveFileName(dirName string, fileName string) string
- func GetSafeFileName(src string) string
- func GetTempPath() string
- func GetTempPathSlashed() string
- func GetTemporaryFileName() string
- func GetUniqueFileName(dir string, prefix string, suffix string) string
- func GetUniqueTmpFolder() string
- func MakeLastPathIfNotAbsolute(fileName string) string
- func ReadConfigByDescription(config string) (duration1 int, duration2 int, name string, ok bool)
- func ResetAllLocalFileCache()
- func ResetCacheGroups(groups ...string)
- func ResetCacheItems(items ...string)
- func ResetTotalCache()
- func SaveToUniqueFile(data string) string
- func SetCacheConfigByDescription(groupName string, config string, valueGetter CacheValueGetter) bool
- func SetCacheConfigWhole(groupName string, memoryDuration int, fileDuration int, folderName string, ...) bool
- func SetCacheValue(key string, value interface{})
- func SetCacheValueAndSave(key string, value interface{}, tosave bool)
- func SetTempPath(path string, prefix string)
- type CacheValueGetter
Constants ¶
View Source
const CommonGroup = "dv_common"
Variables ¶
This section is empty.
Functions ¶
func CleanTmpFolder ¶
func CopySingleFile ¶
func CopySymLink ¶
func CopyWholeFolder ¶
func DeleteAllSavedFiles ¶
func DeleteFileIfExists ¶
func DeleteLastSavedFile ¶
func EnsureFolderForUsualFileToBeSaved ¶
func EnsureFolderForUsualFileToBeSaved(fileName string)
func GetCacheByteArrayValue ¶
func GetCacheFloat64Value ¶
func GetCacheInt64Value ¶
func GetCacheLocalFileInfo ¶
func GetCacheStringValue ¶
func GetCacheValue ¶
func GetFirstExistingPath ¶
func GetFolderLastPartName ¶
func GetGroupByKey ¶
func GetLastSavedFileName ¶
func GetNextSaveFileName ¶
func GetSafeFileName ¶
func GetTempPath ¶
func GetTempPath() string
func GetTempPathSlashed ¶
func GetTempPathSlashed() string
func GetTemporaryFileName ¶
func GetTemporaryFileName() string
func GetUniqueTmpFolder ¶
func GetUniqueTmpFolder() string
func ReadConfigByDescription ¶
func ResetAllLocalFileCache ¶
func ResetAllLocalFileCache()
func ResetCacheGroups ¶
func ResetCacheGroups(groups ...string)
func ResetCacheItems ¶
func ResetCacheItems(items ...string)
func ResetTotalCache ¶
func ResetTotalCache()
func SaveToUniqueFile ¶
func SetCacheConfigByDescription ¶
func SetCacheConfigByDescription(groupName string, config string, valueGetter CacheValueGetter) bool
func SetCacheConfigWhole ¶
func SetCacheValue ¶
func SetCacheValue(key string, value interface{})
func SetCacheValueAndSave ¶
func SetTempPath ¶
Types ¶
type CacheValueGetter ¶
Click to show internal directories.
Click to hide internal directories.