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

opsee/protobuf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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