-
Notifications
You must be signed in to change notification settings - Fork 508
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
Default service generator? #1105
Comments
I don't understand what you are asking. If you are looking for a complete service implementation, then you should look into gRPC and tonic. Else, you need to explain more of what you are trying to do, primarily because |
What I wanted was to make an RPC interface with prost but manage transport myself. So I expected the, indeed made-up example of |
As I understand, the transport needs to provide the method name to be called. There is wire specification for the service itself, just for the request and response objects. There is no protobuf specification for what you are looking for. The C++ implementation did have something like you are describing, but that seems to be deprecated. A transport-specific implementation is deemed more efficient. If you are willing to contribute an implementation of your proposal, I am open to discussing that. |
It would be nice to have a default service generator that, for the previous service, generates the following trait.
That way users could use it as follows.
This generation process does not seem to depend on the way it is implemented in the project. Is it planned and not implemented because there hasn’t been any one to do so, or do you think it shouldn’t be implemented?
The text was updated successfully, but these errors were encountered: