Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jiashunx/eureka-client-go
SDK:基于Go实现的Eureka客户端(服务注册、服务发现)
https://github.com/jiashunx/eureka-client-go
Last synced: 2 months ago
JSON representation
SDK:基于Go实现的Eureka客户端(服务注册、服务发现)
- Host: GitHub
- URL: https://github.com/jiashunx/eureka-client-go
- Owner: jiashunx
- License: apache-2.0
- Created: 2024-04-29T12:23:12.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-03T02:34:02.000Z (2 months ago)
- Last Synced: 2024-11-03T03:19:26.044Z (2 months ago)
- Language: Go
- Size: 135 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### 基于Go实现的Eureka客户端(服务注册、服务发现)
- 实现功能
- 封装与Eureka Server通讯的Http API: [HttpClient](./client/http.go)
- 封装服务注册客户端:[RegistryClient](./client/registry.go)
- 封装服务发现客户端:[DiscoveryClient](./client/discovery.go)
- 集成以上三类功能的Eureka客户端:[EurekaClient](./client/client.go),包含服务注册与发现所有功能,开启后自动注册心跳并获取服务信息
- 添加依赖
```shell
go get github.com/jiashunx/[email protected]
```- 代码样例
- 参见测试用例:[测试用例](./client/client_test.go)