This repo contains examples of writing contracts for gRPC service and git-hook to auto generate codes.
- Git
- Docker
Write the .proto
files in the /proto directory.
To use the generated stub and client code:
- go
go get -u github.com/naponmeka/grpcspec-example
- python
pip install -e git+https://github.com/naponmeka/grpcspec-example.git#egg=pygrpcspec
make init
make generate
Go: go to this repo
Python: go to this repo