Documentation ¶
Overview ¶
Package genflowtypes provides a code generator for flow types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
Dependencies maps packages names to imported type names.
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 GeneratorOptions) ([]*plugin.CodeGeneratorResponse_File, error)
Generate processes the given proto files and produces flowtype output.
type GeneratorOptions ¶
type GeneratorOptions struct { AlwaysQualifyTypes bool EmbedEnums bool OptonalSimpleTypes bool FilenameOverride string EmitEnumZeros bool InputID string DumpJSON bool ProtoOptions opts.Options }
GeneratorOptions describes output parameters
type NamedFlowTyper ¶
NamedFlowTyper is a FlowTyper with a name.
Click to show internal directories.
Click to hide internal directories.