Routing Service API Contract
References
Pre-requisite for code generation
In the /rpc
directory, for each package, all the *.go
files are generated from the *.proto
file.
Important: The generated *.go
files must NOT be manually edited. To make changes, update the *.proto
file and re-run the command below. This will re-generate and update the *.go
files
Follow the installation steps linked here before running the code generation commands below
Command to generate code
// generate the Go files from the proto files
protoc --twirp_out=. --go_out=. <path-to-the-proto-file>
Example:
protoc --twirp_out=. --go_out=. rpc/helloworld/service.proto