etcd-discovery:在etcd上分层以在Go中进行简单的服务发现

时间:2024-06-09 20:04:39
【文件属性】:

文件名称:etcd-discovery:在etcd上分层以在Go中进行简单的服务发现

文件大小:41KB

文件格式:ZIP

更新时间:2024-06-09 20:04:39

Go

Etcd发现v7.0.3 这是一个golang软件包,用于管理分散式键值存储etcd上的服务 要安装它: go get github.com/Scalingo/etcd-discovery/service/v7 原料药 注册服务 /* * First argument is the name of the service * Then a struct containing the service informations * The registeration will stop when the context will be canceled. * It will return the service uuid and a channel which will send back any modifications made to the service by th


【文件预览】:
etcd-discovery-master
----.github()
--------dependabot.yml(171B)
----LICENSE(10KB)
----AUTHORS(74B)
----.gitignore(34B)
----CHANGELOG.md(2KB)
----service()
--------init.go(4KB)
--------servicemock()
--------host.go(5KB)
--------init_test.go(3KB)
--------registration_test.go(3KB)
--------parser.go(835B)
--------service_test.go(3KB)
--------service.go(3KB)
--------register_test.go(4KB)
--------parser_test.go(1KB)
--------register.go(5KB)
--------registration.go(2KB)
--------get.go(5KB)
--------get_test.go(4KB)
--------subscribe.go(2KB)
--------host_test.go(4KB)
--------subscribe_test.go(2KB)
--------helpers_test.go(599B)
----go.sum(24KB)
----README.md(3KB)
----go.mod(421B)

网友评论