Tool for generating gokit-based microservice project structure with proto-3 file.
The project is not finished yet!
# generate *.pb.go from *.proto
protoc \
--proto_path=$(GOPATH)/src/github.com/gogo/protobuf/protobuf/ \
--proto_path=. \
--go_out=plugins=grpc:. \
api/pb/v1/sport-archive-svc.proto
# use *.pb.go to genetate boilerplate code
go-kit-gen \
--working-dir=/home/scherkesov/go/src/github.com/goforbroke1006/sport-archive-svc \
--proto-res-file=api/pb/v1/sport-archive-svc.pb.go \
--service-name=SportArchive \
--transport-type=grpc
- pkg
- endpoint
- service
- transport