Documentation ¶
Index ¶
- func GetConfigContent(nacosConfig NacosConfig, configClient config_client.IConfigClient) (string, error)
- func GetNacosClientConfig(nacosConfig NacosConfig) *constant.ClientConfig
- func GetServerConfig(nacosConfig NacosConfig) []constant.ServerConfig
- func GetconfigClient(nacosConfig NacosConfig) (config_client.IConfigClient, error)
- type NacosConfig
- type NacosConfigParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigContent ¶
func GetConfigContent(nacosConfig NacosConfig, configClient config_client.IConfigClient) (string, error)
GetConfigContent 获取nacos配置文件内容
func GetNacosClientConfig ¶
func GetNacosClientConfig(nacosConfig NacosConfig) *constant.ClientConfig
GetNacosClientConfig 获取nacos客户端配置
func GetServerConfig ¶
func GetServerConfig(nacosConfig NacosConfig) []constant.ServerConfig
GetServerConfig 获取nacos服务配置
func GetconfigClient ¶
func GetconfigClient(nacosConfig NacosConfig) (config_client.IConfigClient, error)
GetconfigClient 获取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.