protoc-gen-furo-muspecs

command
v1.39.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 6 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL