Utils

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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

type NacosConfigParam struct {
	Host         string
	Port         uint64
	DataId       string
	Group        string
	ClientConfig constant.ClientConfig `json:"ClientConfig"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL