Skip to content

goforbroke1006/go-kit-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-kit-gen

Build Status

Tool for generating gokit-based microservice project structure with proto-3 file.

The project is not finished yet!

CLI

# 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

Project structure

  • pkg
    • endpoint
    • service
    • transport

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published