Documentation ¶
Index ¶
- func GetConfigContentByConfigFile(nacosConfigFile string) (string, error)
- func GetConfigContentByNacosConfig(nacosConfig NacosConfig) (string, error)
- func GetNacosClient(nacosConfig NacosConfig) (config_client.IConfigClient, error)
- func GetNacosClientConfig(nacosConfig NacosConfig) *constant.ClientConfig
- func GetServerConfig(nacosConfig NacosConfig) []constant.ServerConfig
- func ListenConfigContentByConfigFile(nacosConfigFile *string)
- type NacosConfig
- type NacosConfigParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigContentByConfigFile ¶ added in v0.0.2
GetConfigContentByConfigFile 获取nacos配置文件内容
func GetConfigContentByNacosConfig ¶ added in v0.0.2
func GetConfigContentByNacosConfig(nacosConfig NacosConfig) (string, error)
GetConfigContentByNacosConfig 根据nacos配置获取配置文件内容
func GetNacosClient ¶ added in v0.0.2
func GetNacosClient(nacosConfig NacosConfig) (config_client.IConfigClient, error)
GetNacosClient 获取nacos配置客户端
func GetNacosClientConfig ¶
func GetNacosClientConfig(nacosConfig NacosConfig) *constant.ClientConfig
GetNacosClientConfig 获取nacos客户端配置
func GetServerConfig ¶
func GetServerConfig(nacosConfig NacosConfig) []constant.ServerConfig
GetServerConfig 获取nacos服务配置
func ListenConfigContentByConfigFile ¶ added in v0.0.2
func ListenConfigContentByConfigFile(nacosConfigFile *string)
ListenConfigContentByConfigFile TODO: 想想之后怎么实现 1.配置变化后,热重启或者重新加载配置 ListenConfigContentByConfigFile 监听nacos配置文件
Types ¶
type NacosConfig ¶
type NacosConfig struct {
ConfigParam NacosConfigParam
}
func GetNacosConfig ¶
func GetNacosConfig(nacosConfigFile string) (NacosConfig, error)
GetNacosConfig 从配置文件中获取nacos配置
type NacosConfigParam ¶
Click to show internal directories.
Click to hide internal directories.