Versions in this module Expand all Collapse all v1 v1.0.0 Feb 19, 2024 Changes in this version + const VERSION + var SupportedFeatures = uint64(plugin_go.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL) + 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) + type Enum struct + Description string + FullName string + LongName string + Name string + Options map[string]interface{} + Values []*EnumValue + func (e Enum) Option(name string) interface{} + func (e Enum) ValueOptions() []string + func (e Enum) ValuesWithOption(optionName string) []*EnumValue + type EnumValue struct + Description string + Name string + Number string + Options map[string]interface{} + func (v EnumValue) Option(name string) interface{} + type File struct + Description string + Enums orderedEnums + Extensions orderedExtensions + HasEnums bool + HasExtensions bool + HasMessages bool + HasServices bool + Messages orderedMessages + Name string + Options map[string]interface{} + Package string + Services orderedServices + func (f File) Option(name string) interface{} + 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 Message struct + Description string + Extensions []*MessageExtension + Fields []*MessageField + FullName string + HasExtensions bool + HasFields bool + HasOneofs bool + LongName string + Name string + Options map[string]interface{} + func (m Message) FieldOptions() []string + func (m Message) FieldsWithOption(optionName string) []*MessageField + func (m Message) Option(name string) interface{} + type MessageExtension struct + ScopeFullType string + ScopeLongType string + ScopeType string + type MessageField struct + DefaultValue string + Description string + FullType string + IsMap bool + IsOneof bool + Label string + LongType string + Name string + OneofDecl string + Options map[string]interface{} + Type string + func (f MessageField) Option(name string) interface{} + type Plugin struct + func (p *Plugin) Generate(r *plugin_go.CodeGeneratorRequest) (*plugin_go.CodeGeneratorResponse, error) + 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 RenderType int8 + const RenderTypeDocBook + const RenderTypeHTML + const RenderTypeJSON + const RenderTypeMarkdown + const RenderTypeReStructuredText + 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 + Options map[string]interface{} + func (s Service) MethodOptions() []string + func (s Service) MethodsWithOption(optionName string) []*ServiceMethod + func (s Service) Option(name string) interface{} + type ServiceMethod struct + Description string + Name string + Options map[string]interface{} + RequestFullType string + RequestLongType string + RequestStreaming bool + RequestType string + ResponseFullType string + ResponseLongType string + ResponseStreaming bool + ResponseType string + func (m ServiceMethod) Option(name string) interface{} + type Template struct + Files []*File + Scalars []*ScalarValue + func NewTemplate(descs []*protokit.FileDescriptor) *Template