Skip to content

xurvan/protoc-gen-go-std

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC Standard Methods Generator

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.

Features

  • 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

Setup

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

Build

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

About

Protobuf generator for gRPC standard methods in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published