Documentation ¶
Index ¶
- type Annotation
- type CommentSet
- type Comments
- type Descriptor
- type Enum
- type EnumValue
- type Extension
- type ExtensionType
- type Field
- type FieldNumber
- type File
- type FileInfo
- type FullName
- type GeneratedCodeInfo
- type GeneratedFile
- func (g *GeneratedFile) Annotate(symbol string, loc Location)
- func (g *GeneratedFile) AnnotateSymbol(symbol string, info Annotation)
- func (g *GeneratedFile) Content() ([]byte, error)
- func (g *GeneratedFile) Import(importPath GoImportPath)
- func (g *GeneratedFile) P(v ...interface{})
- func (g *GeneratedFile) QualifiedGoIdent(ident GoIdent) string
- func (g *GeneratedFile) Skip()
- func (g *GeneratedFile) Unskip()
- func (g *GeneratedFile) Write(p []byte) (n int, err error)
- type GoIdent
- type GoImportPath
- type GoPackageName
- type Location
- type Message
- type Method
- type Oneof
- type Options
- type Plugin
- type Service
- type Types
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
Location Location
}
type CommentSet ¶
type Descriptor ¶
type Descriptor string
type Enum ¶
type Enum struct { Desc string GoIdent GoIdent Values []*EnumValue Location Location Comments CommentSet }
type EnumValue ¶
type EnumValue struct { Desc string GoIdent GoIdent Parent *Enum Location Location Comments CommentSet }
type ExtensionType ¶
type ExtensionType struct{}
type FieldNumber ¶
type FieldNumber string
type File ¶
type File struct { GoDescriptorIdent GoIdent GoPackageName GoPackageName GoImportPath GoImportPath Enums []*Enum Messages []*Message Extensions []*Extension Services []*Service Generate bool GeneratedFilenamePrefix string // contains filtered or unexported fields }
type GeneratedCodeInfo ¶
type GeneratedCodeInfo struct{}
type GeneratedFile ¶
type GeneratedFile struct {
// contains filtered or unexported fields
}
func (*GeneratedFile) Annotate ¶
func (g *GeneratedFile) Annotate(symbol string, loc Location)
func (*GeneratedFile) AnnotateSymbol ¶
func (g *GeneratedFile) AnnotateSymbol(symbol string, info Annotation)
func (*GeneratedFile) Content ¶
func (g *GeneratedFile) Content() ([]byte, error)
func (*GeneratedFile) Import ¶
func (g *GeneratedFile) Import(importPath GoImportPath)
func (*GeneratedFile) P ¶
func (g *GeneratedFile) P(v ...interface{})
func (*GeneratedFile) QualifiedGoIdent ¶
func (g *GeneratedFile) QualifiedGoIdent(ident GoIdent) string
func (*GeneratedFile) Skip ¶
func (g *GeneratedFile) Skip()
func (*GeneratedFile) Unskip ¶
func (g *GeneratedFile) Unskip()
type GoIdent ¶
type GoIdent struct { GoName string GoImportPath GoImportPath }
type GoImportPath ¶
type GoImportPath string
func (GoImportPath) Ident ¶
func (p GoImportPath) Ident(s string) GoIdent
func (GoImportPath) String ¶
func (p GoImportPath) String() string
type GoPackageName ¶
type GoPackageName string
type Options ¶
type Options struct { ParamFunc func(name, value string) error ImportRewriteFunc func(GoImportPath) GoImportPath }
type Plugin ¶
type Plugin struct { Request string Files []*File FilesByPath map[string]*File SupportedFeatures uint64 // contains filtered or unexported fields }
func (*Plugin) NewGeneratedFile ¶
func (gen *Plugin) NewGeneratedFile(filename string, goImportPath GoImportPath) *GeneratedFile
Click to show internal directories.
Click to hide internal directories.