Documentation ¶
Overview ¶
Package manager @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2024 central-mirror CLI @Author linngc @License
Index ¶
- func GetAllConfig() (*embedfs.CfgConfig, *leveldb.CfgConfig, *minio.CfgConfig, *qiniu.CfgConfig, ...)
- func SetConfig(embedfsYaml, leveldbYaml, minioYaml, qiniuYaml, tencentYaml string)
- func SetEmbedfsConfig(yaml *embedfs.CfgConfig)
- func SetLeveldbConfig(yaml *leveldb.CfgConfig)
- func SetMinioConfig(yaml *minio.CfgConfig)
- func SetQiniuConfig(yaml *qiniu.CfgConfig)
- func SetTencentConfig(yaml *tencent.CfgConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllConfig ¶
func GetAllConfig() (*embedfs.CfgConfig, *leveldb.CfgConfig, *minio.CfgConfig, *qiniu.CfgConfig, *tencent.CfgConfig)
GetAllConfig 获取缓存组件配置的资源文件信息 @param embedfs.CfgConfig 本地存储文件 @param leveldb.CfgConfig 持久化leveldb存储 @param minio.CfgConfig 持久化Minio存储 @param qiniu.CfgConfig 持久化Qiniu存储 @param tencent.CfgConfig 持久化Tencent存储
func SetConfig ¶
func SetConfig(embedfsYaml, leveldbYaml, minioYaml, qiniuYaml, tencentYaml string)
SetConfig 指定缓存组件配置的资源文件信息 @param embedfsYaml 本地存储文件 @param leveldbYaml 持久化leveldb存储 @param minioYaml 持久化Minio存储 @param qiniuYaml 持久化Qiniu存储 @param tencentYaml 持久化Tencent存储
func SetEmbedfsConfig ¶
SetEmbedfsConfig 本地存储文件 @param yaml 本地存储文件
func SetLeveldbConfig ¶
SetLeveldbConfig 持久化leveldb存储 @param yaml 持久化leveldb存储
func SetMinioConfig ¶
SetMinioConfig 持久化Minio存储 @param yaml 持久化Minio存储
func SetQiniuConfig ¶
SetQiniuConfig 持久化Qiniu存储 @param yaml 持久化Qiniu存储
func SetTencentConfig ¶
SetTencentConfig 持久化Tencent存储 @param yaml 持久化Tencent存储
Types ¶
This section is empty.