Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldOptions ¶
type FieldOptions struct {
IsRequired bool
}
func DefaultFieldOptionsFunc ¶
func DefaultFieldOptionsFunc(mOpts MessageOptions, f *desc.FieldDescriptor) FieldOptions
type FieldOptionsFunc ¶
type FieldOptionsFunc = func(MessageOptions, *desc.FieldDescriptor) FieldOptions
type Generator ¶
type Generator struct { *bytes.Buffer Request *plugin.CodeGeneratorRequest Response *plugin.CodeGeneratorResponse // contains filtered or unexported fields }
func (*Generator) GenerateAllFiles ¶
func (g *Generator) GenerateAllFiles(params *Parameters)
type MessageOptions ¶
type MessageOptions struct {
DefaultFieldOptions *FieldOptions
}
func DefaultMessageOptionsFunc ¶
func DefaultMessageOptionsFunc(m *desc.MessageDescriptor) MessageOptions
type MessageOptionsFunc ¶
type MessageOptionsFunc = func(*desc.MessageDescriptor) MessageOptions
type OutputNameContext ¶
type OutputNameContext struct { Dir string BaseName string Descriptor *desc.FileDescriptor Request *plugin.CodeGeneratorRequest }
type Parameters ¶
type Parameters struct { AsyncIterators bool DeclareNamespace bool OutputNamePattern string DumpRequestDescriptor bool EnumsAsInt bool OriginalNames bool Verbose int Int64AsString bool MessageOptionsFunc MessageOptionsFunc FieldOptionsFunc FieldOptionsFunc }
Click to show internal directories.
Click to hide internal directories.