Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmitResponse ¶
func EmitResponse(res *plugin.CodeGeneratorResponse) error
EmitResponse returns the response of protoc
func ParseRequest ¶
func ParseRequest(r io.Reader) (*plugin.CodeGeneratorRequest, error)
ParseRequest parses the input and returns the CodeGeneratorRequest of protoc.
func ProcessRequest ¶
func ProcessRequest(req *plugin.CodeGeneratorRequest, genCodeFunc func(packageName, serviceName string, methods []*descriptor.MethodDescriptorProto) string) *plugin.CodeGeneratorResponse
ProcessRequest processes the request and returns a response to generate the code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.