MCPcopy
hub / github.com/grpc/grpc-go / exampleResolver

Struct exampleResolver

examples/features/dualstack/client/main.go:50–50  ·  view source on GitHub ↗

exampleResolver implements both, a fake `resolver.Resolver` and `resolver.Builder`. This resolver sends a hard-coded list of 3 endpoints each with 2 addresses (one IPv4 and one IPv6) to the channel.

Source from the content-addressed store, hash-verified

48// `resolver.Builder`. This resolver sends a hard-coded list of 3 endpoints each
49// with 2 addresses (one IPv4 and one IPv6) to the channel.
50type exampleResolver struct{}
51
52func (*exampleResolver) Close() {}
53

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected