internal_genhi

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Overview

Package internal_gengo is internal to the protobuf module.

Index

Constants

This section is empty.

Variables

View Source
var GenerateVersionMarkers = true

GenerateVersionMarkers specifies whether to generate version markers.

SupportedFeatures reports the set of supported protobuf language features.

Functions

func GenerateFile

func GenerateFile(gen *protogen.Plugin, file *protogen.File) *protogen.GeneratedFile

GenerateFile generates the contents of a .pb.go file.

Types

type MethodDesc

type MethodDesc struct {
	// method
	Name    string
	Num     int
	Request string
	Reply   string
	// http_rule
	Path         string
	Method       string
	HasVars      bool
	HasBody      bool
	Body         string
	ResponseBody string
}

type ServiceDesc

type ServiceDesc struct {
	ServiceType string // Greeter
	ServiceName string // helloworld.Greeter
	Metadata    string // api/helloworld/helloworld.proto
	Methods     []*MethodDesc
	MethodSets  map[string]*MethodDesc
}

func (*ServiceDesc) Execute

func (s *ServiceDesc) Execute() string

type ServiceInfo added in v1.1.9

type ServiceInfo struct {
	ProjectUri string
	MiddleWire string
}

ServiceInfo 服务的基本信息,包括组路由,中间件

Jump to

Keyboard shortcuts

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