Simple example of the generated service.
It serves 2 protocols: HTTP (REST) and GRPC. Both are using the same handler for business logic.
Each protocol has corresponding autogenerated client.
Example is able to run 3 binaries:
- server (with a middleware to recover from panics)
- HTTP client
- GRPC client
Everything is generated from sum.proto.
make run-server
make run-client-http
make run-client-grpc
make build
To force rebuild all files during generation, change force=false
to force=true
in the Makefile.