awakesecurity / gRPC-haskell

Haskell gRPC support
https://hackage.haskell.org/package/grpc-haskell
Apache License 2.0
236 stars 74 forks source link

Generalize endpoint in ClientConfig #151

Closed rkaippully closed 1 year ago

rkaippully commented 1 year ago

gRPC library supports DNS as a default name-system, but others are supported as well: https://github.com/grpc/grpc/blob/master/doc/naming.md

This PR generalizes ClientConfig such that any arbitrary endpoints are supported instead of only DNS based TCP/IP connections to a server. The server code is unmodified as that involves lot more work; it can be considered in a future PR.

This is a breaking change, but clients only require minimal change to move to the new structure.