Add a new module channel with a function to parse URIs to create grpclib client Channel instances. For now the URI provides only very basic options, but it can be extended in the future.
The main idea for this is to abstract ourselves from the channel class in the client, for one side to ease the transition to betterproto/grpclib but also because we will soon need an easy way to configure secure channels too, so just host/port won't be enough. Using URIs is pretty flexible as one can pass arbitrary options via query strings.
Add a new module
channel
with a function to parse URIs to creategrpclib
clientChannel
instances. For now the URI provides only very basic options, but it can be extended in the future.The main idea for this is to abstract ourselves from the channel class in the client, for one side to ease the transition to
betterproto
/grpclib
but also because we will soon need an easy way to configure secure channels too, so just host/port won't be enough. Using URIs is pretty flexible as one can pass arbitrary options via query strings.