|
@ -17,13 +17,11 @@ import ( |
|
|
|
|
|
|
|
|
func init() { |
|
|
func init() { |
|
|
sc := []constant.ServerConfig{ |
|
|
sc := []constant.ServerConfig{ |
|
|
*constant.NewServerConfig("72535c70-8d6d-400f-9893-4bb3e634f682.nacos.cn-north-4.cse.myhuaweicloud.com", 8848), |
|
|
*constant.NewServerConfig("1.92.109.79", 30848), |
|
|
} |
|
|
} |
|
|
cc := constant.ClientConfig{ |
|
|
cc := constant.ClientConfig{ |
|
|
NamespaceId: "dev", |
|
|
NamespaceId: "dev", |
|
|
TimeoutMs: 5000, |
|
|
TimeoutMs: 5000, |
|
|
Username: "nacos", |
|
|
|
|
|
Password: "nacos", |
|
|
|
|
|
} |
|
|
} |
|
|
client, err := clients.NewNamingClient( |
|
|
client, err := clients.NewNamingClient( |
|
|
vo.NacosClientParam{ |
|
|
vo.NacosClientParam{ |
|
@ -51,13 +49,11 @@ func init() { |
|
|
|
|
|
|
|
|
func InitNacosClient() { |
|
|
func InitNacosClient() { |
|
|
sc := []constant.ServerConfig{ |
|
|
sc := []constant.ServerConfig{ |
|
|
*constant.NewServerConfig("72535c70-8d6d-400f-9893-4bb3e634f682.nacos.cn-north-4.cse.myhuaweicloud.com", 8848), |
|
|
*constant.NewServerConfig("1.92.109.79", 30848), |
|
|
} |
|
|
} |
|
|
cc := constant.ClientConfig{ |
|
|
cc := constant.ClientConfig{ |
|
|
NamespaceId: "dev", |
|
|
NamespaceId: "dev", |
|
|
TimeoutMs: 5000, |
|
|
TimeoutMs: 5000, |
|
|
Username: "nacos", |
|
|
|
|
|
Password: "nacos", |
|
|
|
|
|
} |
|
|
} |
|
|
func() { |
|
|
func() { |
|
|
client, err := clients.NewNamingClient( |
|
|
client, err := clients.NewNamingClient( |
|
|