Open Dogacel opened 1 year ago
Hi 👋🏻 I'm looking to build a client for connect similar to https://github.com/collectiveidea/twirp-kmm that works on kmp. Does this package include something like the service code generation in https://github.com/streem/pbandk?tab=readme-ov-file#service-code-generation?
Also, I'm having trouble running this plugin with protoc. Could you provide some guidance?
Hi 👋🏻 I'm looking to build a client for connect similar to https://github.com/collectiveidea/twirp-kmm that works on kmp. Does this package include something like the service code generation in https://github.com/streem/pbandk?tab=readme-ov-file#service-code-generation?
Also, I'm having trouble running this plugin with protoc. Could you provide some guidance?
Hi @kansson , what kind of problem are you having? Did you follow the official docs? Setup and Documentation
You can use the flag generateServices
to generate abstract classes but they will be just classes and won't be integrated into any of the frameworks.
If you want to contribute service code generation for a framework such as Ktor, Netty, Armeria etc. I would be glad to review it.
Currently services and methods are generated. But there is no way to call or serve those actual methods.
There are several caveats,
My service of preference is Armeria for testing.
Easiest way to develop such a feature would be starting with Unary only methods.