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

autoregister all provided services #732

Closed
vtolstov opened this issue Aug 19, 2018 · 1 comment
Closed

autoregister all provided services #732

vtolstov opened this issue Aug 19, 2018 · 1 comment

Comments

@vtolstov
Copy link

I have many services (more then 20) does it possible to register bulk all this services in grpc and grpc-gateway? Or i need to pass one by one inside gateway and grpc functions (runtime.NewServeMux and grpc.NewServer)

@johanbrandhorst
Copy link
Collaborator

I the best you can do is create something like a slice of register functions and then call the function once for each entry, and it's not really worth it at that point since you have to list all of them explicitly anyway.

I don't think there's anything we can do to make this easier without creating a lot of ugly new API unfortunately, so I will close this issue. If you disagree, please feel free to reply and we can discuss other solutions.

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

No branches or pull requests

2 participants