protoc-gen-furo-muspecs
Use Case
- If you have a bunch of services and messages specified in proto and want to use them in a furo client project,
this generator comes very handy.
Parameters
[exclude]
Optional regex to match target files that should not be built.
Maybe you do not want all request and response types from the services...
--furo-muspecs_out=exclude=".*(Response)|(Request).type.spec":. *.proto
Installation
go get github.com/eclipse/eclipsefuro/protoc-gen-furo-muspecs
Add protoc-gen-furo-muspecs to your tools.go file if you want.
//+build tools
package tools
import (
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
_ "google.golang.org/protobuf/cmd/protoc-gen-go"
_ "github.com/eclipse/eclipsefuro/protoc-gen-furo-muspecs"
)
Using the plugin
Like every other protoc generator... Nothing special here.
go build . && protoc --plugin protoc-gen-furo-muspecs -I../furoBaseSpecs/dist/proto/Messages/ -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I$GOPATH/src/github.com/googleapis/googleapis --furo-muspecs_out=:./out ../furoBaseSpecs/dist/proto/Messages/**/*.proto