Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guide for Server and Client interceptors #342

Open
Nezteb opened this issue Dec 8, 2023 · 3 comments
Open

Add guide for Server and Client interceptors #342

Nezteb opened this issue Dec 8, 2023 · 3 comments

Comments

@Nezteb
Copy link
Contributor

Nezteb commented Dec 8, 2023

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.

@polvalente
Copy link
Contributor

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.

@polvalente polvalente changed the title Support Client Interceptors Add guide for Server and Client interceptors Dec 8, 2023
@polvalente
Copy link
Contributor

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

@Nezteb
Copy link
Contributor Author

Nezteb commented Dec 8, 2023

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

I agree; updating the docs is ideal!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants