processor

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2020 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL