Documentation ¶
Overview ¶
Package genflowtypes provides a code generator for flow types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var E_Field = &proto.ExtensionDesc{ ExtendedType: (*pbdescriptor.FieldOptions)(nil), ExtensionType: validator.E_Field.ExtensionType, Field: validator.E_Field.Field, Name: validator.E_Field.Name, Tag: validator.E_Field.Tag, Filename: validator.E_Field.Filename, }
this is a hack to use the FieldOptions descriptor from golang/proto instead of gogo/proto
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator processes proto descriptors and generates flow type definitions.
func New ¶
func New(reg *descriptor.Registry) *Generator
New returns a new generator which generates flowtype type definition files.
func (*Generator) Generate ¶
func (g *Generator) Generate(targets []*descriptor.File, opts Options) ([]*plugin.CodeGeneratorResponse_File, error)
Generate processes the given proto files and produces flowtype output.
type NamedFlower ¶
NamedFlower is a Flower with a name
Click to show internal directories.
Click to hide internal directories.