Documentation ¶
Index ¶
- Variables
- func ApiGroup(srv *protogen.Service) string
- func Exec(ts *TsTemplate)
- func GenFuncDesc(method *protogen.Method) string
- func GenerateFile(gen *protogen.Plugin, file *protogen.File) *protogen.GeneratedFile
- func GetMethodPath(group string, m *protogen.Method) (path, method string)
- func ToJsNumber(k protoreflect.Kind) string
- type Comment
- type FuncDesc
- type IFace
- type ParamDesc
- type RestfulAPI
- type ServiceInfo
- type TsTemplate
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL)
SupportedFeatures reports the set of supported protobuf language features.
Functions ¶
func GenerateFile ¶
GenerateFile generates the contents of a .pb.go file.
func ToJsNumber ¶
func ToJsNumber(k protoreflect.Kind) string
Types ¶
type RestfulAPI ¶
type RestfulAPI struct { // 请求方法。 目前支持GET,POST,ANY RequestMethod string // 自定义的路径 Url string // api方法 Method string // contains filtered or unexported fields }
RestfulAPI 定义方法
type ServiceInfo ¶
type ServiceInfo struct { // 根路由 ProjectUri string // 中间件 MiddleWire string // 导包路径 ImportPath []string Method string }
ServiceInfo 服务的基本信息,包括组路由,中间件
type TsTemplate ¶
Click to show internal directories.
Click to hide internal directories.