elixir-grpc / grpc

An Elixir implementation of gRPC

Home Page:https://hex.pm/packages/grpc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add guide for Server and Client interceptors

Nezteb opened this issue · comments

Describe the solution you'd like

We currently support server interceptors via the GRPC.Endpoint module.

However, there seems to be no way to implement client interceptors.

Some relevant links:

Describe alternatives you've considered

I can't think of any viable alternatives.

run_endpoint(HelloEndpoint, fn port ->

The feature is there already! I'll change the issue to improve documentation on this.
We should probably add a guide with interceptors on both ends.

Noting that this is lacking actual documentation. The Client Interceptor module points to Stub, but Stub just cites the option without explanation: https://hexdocs.pm/grpc/GRPC.Stub.html#connect/2

I just came back here to mention that I eventually found the same module(s) you mentioned. 😅

I agree; updating the docs is ideal!