proto

package
v0.0.0-...-019d37c Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: BSD-3-Clause, MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoParse

func DoParse()

func DoTmpl

func DoTmpl(tmplStr string, params interface{}) (targetStr string, err error)

func ParseOptionMethodPath

func ParseOptionMethodPath(opt *options.HttpRule) (method, path_ string, err error)

func ParseRequest

func ParseRequest(r io.Reader) (*plugin.CodeGeneratorRequest, error)

ParseRequest parses a code generator request from a proto Message.

Types

type ProtoParamType

type ProtoParamType struct {
	Services []string //要去重,此得到的是service list
	RpcList  []RpcParamType
}

pb文件的参数信息

type RpcInfo

type RpcInfo struct {
	ServiceName  string
	RpcName      string
	RequestName  string
	ResponseName string
	Methods      []string
	Paths        []string
}

func (*RpcInfo) String

func (this *RpcInfo) String() string

type RpcParamType

type RpcParamType struct {
	ServiceName  string
	Route        string
	MethodName   string
	RequestName  string
	ResponseName string
}

Jump to

Keyboard shortcuts

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