Documentation ¶
Index ¶
- func AddAcmConfig(runTime string, ccConfig constant.ClientConfig) error
- func AddLocalConfig(runTime string, configs string)
- func AddLocalConfigFile(runTime string, filePath string)
- func AddNacosConfig(runTime string, ccConfig constant.ClientConfig, ...) error
- func GetConfig() (string, error)
- func NacosToViper()
- func NacosToViperFile(basefiles ...string)
- func NewLocalNacos(configs string) config_client.IConfigClient
- func NewLocalNacosFile(filepath string) config_client.IConfigClient
- func SetCallBackFunc(group, dataId string, callbark func(namespace, group, dataId, data string))
- func SetDataIds(group string, dataIds ...string)
- func SetRunTime(runtime string)
- func SetviperBase(configs string)
- type LocalNacos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAcmConfig ¶
func AddAcmConfig(runTime string, ccConfig constant.ClientConfig) error
注入ACM配置文件
func AddLocalConfigFile ¶ added in v1.1.3
注入本地文件配置
func AddNacosConfig ¶
func AddNacosConfig(runTime string, ccConfig constant.ClientConfig, csConfigs []constant.ServerConfig) error
注入Nacos配置文件
func NacosToViper ¶
func NacosToViper()
func NacosToViperFile ¶ added in v1.1.3
func NacosToViperFile(basefiles ...string)
func NewLocalNacos ¶
func NewLocalNacos(configs string) config_client.IConfigClient
func NewLocalNacosFile ¶ added in v1.1.3
func NewLocalNacosFile(filepath string) config_client.IConfigClient
func SetCallBackFunc ¶
配置回调方法
func SetviperBase ¶ added in v1.1.3
func SetviperBase(configs string)
Types ¶
type LocalNacos ¶
type LocalNacos struct { FilePath string config_client.IConfigClient // contains filtered or unexported fields }
func (*LocalNacos) DeleteConfig ¶
func (l *LocalNacos) DeleteConfig(param vo.ConfigParam) (bool, error)
删除配置
func (*LocalNacos) GetConfig ¶
func (l *LocalNacos) GetConfig(param vo.ConfigParam) (string, error)
获取配置
func (*LocalNacos) ListenConfig ¶
func (l *LocalNacos) ListenConfig(params vo.ConfigParam) (err error)
监听配置
func (*LocalNacos) PublishConfig ¶
func (l *LocalNacos) PublishConfig(param vo.ConfigParam) (bool, error)
发布配置
Click to show internal directories.
Click to hide internal directories.