extension

package
v0.0.0-...-f3a2492 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional custom.extension.HttpMethodOption http = 1001;
	E_Http = &file_custom_extension_extension_proto_extTypes[0]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_custom_extension_extension_proto protoreflect.FileDescriptor

Functions

func GetGrpcMethods

func GetGrpcMethods(methods []*protogen.Method) (grpcMethods []*protogen.Method)

GetGrpcMethods .

func GetServiceGrpcMethods

func GetServiceGrpcMethods(service *protogen.Service) (grpcMethods []*protogen.Method)

GetServiceGrpcMethods .

func MethodShouldBeGrpcSkipped

func MethodShouldBeGrpcSkipped(method *protogen.Method) bool

MethodShouldBeGrpcSkipped .

Types

type HttpMethodOption

type HttpMethodOption struct {

	// if true, means is pure http method, do not generate grpc code, and force register http handler.
	// default is false, will generate both grpc and http code.
	Pure bool `protobuf:"varint,1,opt,name=pure,proto3" json:"pure,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpMethodOption) Descriptor deprecated

func (*HttpMethodOption) Descriptor() ([]byte, []int)

Deprecated: Use HttpMethodOption.ProtoReflect.Descriptor instead.

func (*HttpMethodOption) GetPure

func (x *HttpMethodOption) GetPure() bool

func (*HttpMethodOption) ProtoMessage

func (*HttpMethodOption) ProtoMessage()

func (*HttpMethodOption) ProtoReflect

func (x *HttpMethodOption) ProtoReflect() protoreflect.Message

func (*HttpMethodOption) Reset

func (x *HttpMethodOption) Reset()

func (*HttpMethodOption) String

func (x *HttpMethodOption) String() string

Jump to

Keyboard shortcuts

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