Skip to content

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protoc-gen-go-random

Getting started

brew tap juliendoutre/protoc-gen-go-random https://github.com/juliendoutre/protoc-gen-go-random
brew install protoc-gen-go-random

Usage

brew install protobuf
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
protoc ./example/api.proto --go_out=./example/ --go-grpc_out=./example/ --go-random_out=./example/

Run the example

cd example && go run .
# In another shell
grpcurl -plaintext localhost:8000 HelloWorld/Greet

Development

Lint the code

brew install golangci-lint
golangci-lint run

Release a new version

git tag -a v0.1.0 -m "New release"
git push origin v0.1.0

Update the example generated code

go install .
protoc ./example/api.proto --go_out=./example/ --go-grpc_out=./example/ --go-random_out=./example/

References

About

A Go protoc plugin to implement gRPC services with a randomized server.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages