This project is a Protobuf generator that automatically generates gRPC methods based on the "standard methods" section of the Google API design guide. The generated methods include List, Get, Create, Update, and Delete, which are commonly used in API design.
The generator works on top of the existing protoc-gen-go
, protoc-gen-go-grpc
, and sqlc
tools. It utilizes the
files generated by these tools to generate the standard gRPC methods for your Go project. By following the Google API
design guide, this generator aims to promote consistency and best practices in API development.
- Generates gRPC service methods for List, Get, Create, Update, and Delete operations based on the resource messages defined in your Protobuf files.
- Follows the naming conventions and method signatures outlined in the Google API design guide.
- Support pagination
We can install dependencies with:
go mod download
also, it's possible to use the make
:
make install
and to run the code:
go cmd/main.go
To simply build the project a simple make
command is enough, and then you could find the binary file in the bin
directory:
make
to see all the available commands, use help
argument:
make help