Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { *bytes.Buffer Request *plugin.CodeGeneratorRequest // The input. Response *plugin.CodeGeneratorResponse // The output. TemplateEngine string // mustache, all the time right now }
Generator will generate our template files
func (*Generator) GenerateAllFiles ¶
func (g *Generator) GenerateAllFiles()
GenerateAllFiles generates the output for all the files we're outputting.
func (*Generator) GenerateFile ¶
func (g *Generator) GenerateFile(fdesciptor *google_protobuf.FileDescriptorProto) *plugin.CodeGeneratorResponse_File
GenerateFile given a protobuf file descriptor will generate a template file
Click to show internal directories.
Click to hide internal directories.