Skip to content
This repository was archived by the owner on Jan 5, 2019. It is now read-only.

Latest commit

 

History

History
21 lines (13 loc) · 899 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 899 Bytes

opsee protobuf

This is a collection of "gadgets" (plugins) for the gogo protobuf compiler and a vanity binary for use with protoc.

Current gadgets

graphql

The graphql gadget will generate a graphql schema for protobuf messages for use with the go-graphql package. It defines extensions for use in files, messages, and fields. See examples for usage -- the files generated by the plugin are flavortown.pb.go and flavortownpb_test.go.

Vanity binary: gogoopsee

Use the vanity binary to compile your proto:

protoc --gogoopsee_out=plugins=grpc+graphql,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:. --proto_path=/gopath/src:. *.proto