文件名称:nacos:Nacos是服务配置和发现
文件大小:5KB
文件格式:ZIP
更新时间:2024-04-29 14:19:07
config discovery kratos mircoservices nacos
## kratosv2 nacos 例子 package server import ( "github.com/nacos-group/nacos-sdk-go/clients" "github.com/nacos-group/nacos-sdk-go/clients/naming_client" "github.com/nacos-group/nacos-sdk-go/common/constant" "github.com/nacos-group/nacos-sdk-go/vo" ".../internal/conf" ) // NewHTTPServer new a HTTP server. func NewNacosServer(c *conf.Data) (naming_client.INamingClient, error) {
【文件预览】:
nacos-miya-dev
----go.mod(175B)
----README.md(1KB)
----registry()
--------watcher.go(2KB)
--------registry.go(5KB)
--------service.go(1KB)
----test()
--------registry_test.go(3KB)