File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/simplesurance/grpcconsulresolver )] ( https://goreportcard.com/report/github.com/simplesurance/grpcconsulresolver )
44[ ![ GoDoc] ( https://img.shields.io/badge/godoc-reference-blue.svg )] ( https://pkg.go.dev/github.com/simplesurance/grpcconsulresolver )
55
6- The repository provides a consul resolver for the
7- [ GRPC-Go Package] ( https://github.com/grpc/grpc-go ) .
6+ The repository provides a [ Consul] ( https://www.consul.io/ ) service resolver for
7+ the [ grpc-go Package] ( https://github.com/grpc/grpc-go ) .
8+
9+ It uses uses [ Blocking Queries] ( https://developer.hashicorp.com/consul/api-docs/features/blocking )
10+ to watch Service Catalog entries for changes. By default it only resolves to
11+ services with ` passing ` check status. It can be configured to fallback resolving
12+ to unhealthy services if no healthy ones are available.
13+
14+ Configuration is possible via the standard
15+ [ Consul Environment
16+ Variables] ( https://developer.hashicorp.com/consul/commands#environment-variables )
17+ and via the target URI passed to
18+ [ ` grpc.Dial ` ] ( https://pkg.go.dev/google.golang.org/grpc#Dial ) .
819
920To register the resolver with the grpc-go run:
1021
You can’t perform that action at this time.
0 commit comments