Versions in this module Expand all Collapse all v0 v0.1.0 Oct 20, 2018 Changes in this version + const VERSION + func NoBrFilter(content string) string + func PFilter(content string) template.HTML + func ParaFilter(content string) string + func RenderTemplate(kind RenderType, template *Template, inputTemplate string) ([]byte, error) + func RunPlugin(request *plugin_go.CodeGeneratorRequest) (*plugin_go.CodeGeneratorResponse, error) + type Enum struct + Description string + FullName string + LongName string + Name string + Values []*EnumValue + type EnumValue struct + Description string + Name string + Number string + type File struct + Description string + Enums orderedEnums + Extensions orderedExtensions + HasEnums bool + HasExtensions bool + HasMessages bool + HasServices bool + Messages orderedMessages + Name string + Package string + Services orderedServices + type FileExtension struct + ContainingFullType string + ContainingLongType string + ContainingType string + DefaultValue string + Description string + FullName string + FullType string + Label string + LongName string + LongType string + Name string + Number int + Type string + type Flags struct + func ParseFlags(w io.Writer, args []string) *Flags + func (f *Flags) Code() int + func (f *Flags) HasMatch() bool + func (f *Flags) PrintHelp() + func (f *Flags) PrintVersion() + func (f *Flags) ShowHelp() bool + func (f *Flags) ShowVersion() bool + type Gateway struct + Body string + Method string + Path string + type Message struct + Description string + Extensions []*MessageExtension + Fields []*MessageField + FullName string + HasExtensions bool + HasFields bool + LongName string + Name string + type MessageExtension struct + ScopeFullType string + ScopeLongType string + ScopeType string + type MessageField struct + DefaultValue string + Description string + FullType string + Label string + LongType string + Name string + Type string + type Package struct + Enums map[string]*Enum + Messages map[string]*Message + Name string + Services map[string]*Service + func (pkg Package) SortedEnums() orderedEnums + func (pkg Package) SortedMessages() orderedMessages + type PluginOptions struct + ExcludePatterns []*regexp.Regexp + OutputFile string + TemplateFile string + Type RenderType + func ParseOptions(req *plugin_go.CodeGeneratorRequest) (*PluginOptions, error) + type Processor interface + Apply func(template *Template) ([]byte, error) + type ProtoPackages struct + Enums map[string]*Enum + Messages map[string]*Message + Packages map[string]Package + Services map[string]*Service + type RenderType int8 + const RenderTypeDocBook + const RenderTypeHTML + const RenderTypeJSON + const RenderTypeMarkdown + func NewRenderType(renderType string) (RenderType, error) + type ScalarValue struct + CSharp string + CppType string + GoType string + JavaType string + Notes string + PhpType string + ProtoType string + PythonType string + RubyType string + type Service struct + Description string + FullName string + LongName string + Methods []*ServiceMethod + Name string + func (svc *Service) SortedMethods() orderedMethods + type ServiceMethod struct + Description string + Gateway *Gateway + Name string + RequestFullType string + RequestLongType string + RequestType string + ResponseFullType string + ResponseLongType string + ResponseType string + type Template struct + Files []*File + ProtoPackages ProtoPackages + Scalars []*ScalarValue + func NewTemplate(pr *parser.ParseResult) *Template