Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jille/grpc-multi-resolver
Multiresolver allows you to Dial to multiple hosts/IPs as a single ClientConn.
https://github.com/jille/grpc-multi-resolver
grpc grpc-go
Last synced: about 1 month ago
JSON representation
Multiresolver allows you to Dial to multiple hosts/IPs as a single ClientConn.
- Host: GitHub
- URL: https://github.com/jille/grpc-multi-resolver
- Owner: Jille
- License: apache-2.0
- Created: 2020-09-08T19:27:05.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-24T19:07:11.000Z (about 1 year ago)
- Last Synced: 2024-10-13T06:01:39.219Z (about 1 month ago)
- Topics: grpc, grpc-go
- Language: Go
- Homepage:
- Size: 66.4 KB
- Stars: 19
- Watchers: 4
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grpc-multi-resolver
Package multiresolver allows you to Dial to multiple hosts/IPs as a single ClientConn.
Make sure to import this package:
```go
import _ "github.com/Jille/grpc-multi-resolver"
```and then you can use it with grpc.Dial():
```go
grpc.Dial("multi:///127.0.0.1:1234,dns://example.org:1234")
```Note the triple slash at the beginning.
Note: The ServiceConfig and Attributes from the first target are used, the rest are ignored.