protoc-gen-event
is a protoc
plugin to make publishing proto-defined
events easier.
- events are described with proto files
- Go code representing the events is generated
- Watermill publication and consumption functions are generated
go get github.com/voi-oss/protoc-gen-event
Check the ./examples/
folder to see how events are defined and generate the associated Go code with:
go build -o protoc-gen-event ./cmd/protoc-gen-event/*
protoc --plugin ./protoc-gen-event -I . -I /usr/include --event_out=paths=source_relative:. --go_out=paths=source_relative:. ./examples/events.proto
protoc --event_out=sufficMatch=EventMatchSuffix,paths=source_relative:.
go build -o protoc-gen-event ./cmd/protoc-gen-event/*
protoc --plugin ./protoc-gen-event -I . -I /usr/include --go_out=paths=source_relative:. ./pkg/options/descriptor.proto
We encourage and support an active, healthy community of contributors — including you! Details are in the contribution guide and the code of conduct. The maintainers keep an eye on issues and pull requests, but you can also report any negative conduct to [email protected].
Apache 2.0, see LICENSE.