nacos

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigClient

func GetConfigClient() config_client.IConfigClient

GetConfigClient 获取nacos配置实例

func GetHealthyInstanceUrl

func GetHealthyInstanceUrl(groupName, serviceName string, loggerSvc *zap.Logger) string

GetHealthyInstanceUrl 获取健康实例url地址

func GetNamingClient

func GetNamingClient() naming_client.INamingClient

GetNamingClient 获取nacos服务发现实例

func InitClient

func InitClient(appName, addrStr, namespace string)

InitClient 初始化客户端

注意addrStr支持多个地址,以英文逗号分隔,如:

192.168.224.2:8848,192.168.224.3:8848

Types

This section is empty.

Jump to

Keyboard shortcuts

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