Documentation ¶
Index ¶
- func FileName(name string) string
- type Generator
- func (g *Generator) ExecuteTemplate(genFile *protogen.GeneratedFile, protoFile *protogen.File, packageName string, ...) error
- func (g *Generator) Generate(req *pluginpb.CodeGeneratorRequest) (res *pluginpb.CodeGeneratorResponse, err error)
- func (*Generator) MarshalResponse(res *pluginpb.CodeGeneratorResponse) ([]byte, error)
- func (*Generator) UnmarshalRequest(buf []byte) (*pluginpb.CodeGeneratorRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct { CustomFields func() string CustomEncode func() string CustomDecode func() string // contains filtered or unexported fields }
func (*Generator) ExecuteTemplate ¶
func (*Generator) Generate ¶
func (g *Generator) Generate(req *pluginpb.CodeGeneratorRequest) (res *pluginpb.CodeGeneratorResponse, err error)
func (*Generator) MarshalResponse ¶
func (*Generator) MarshalResponse(res *pluginpb.CodeGeneratorResponse) ([]byte, error)
func (*Generator) UnmarshalRequest ¶
func (*Generator) UnmarshalRequest(buf []byte) (*pluginpb.CodeGeneratorRequest, error)
Click to show internal directories.
Click to hide internal directories.