Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNamingClient ¶
func NewNamingClient(nacosIPAddr string, nacosPort int, nacosNamespaceID string, opts ...Option) (naming_client.INamingClient, error)
NewNamingClient 实例化服务注册和发现nacos客户端
Types ¶
type Option ¶
type Option func(*options)
Option set the nacos client options.
func WithClientConfig ¶
func WithClientConfig(clientConfig *constant.ClientConfig) Option
WithClientConfig set nacos client config
func WithServerConfigs ¶
func WithServerConfigs(serverConfigs []constant.ServerConfig) Option
WithServerConfigs set nacos server config
type Params ¶
type Params struct { IPAddr string // nacos 服务地址 Port uint64 // nacos 服务端口 Scheme string // http或https ContextPath string // path NamespaceID string // 名称空间id Group string // 分组,dev, prod, test DataID string // 配置文件id Format string // 配置文件类型: json,yaml,toml // contains filtered or unexported fields }
Params nacos参数
Click to show internal directories.
Click to hide internal directories.