ghegen

package
v0.0.0-...-a43285c Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional grpc.httpendpoint.GHEServiceOptions base = 50002;
	E_Base = &file_ghe_options_proto_extTypes[1]
)

Extension fields to descriptorpb.ServiceOptions.

View Source
var (
	// optional grpc.httpendpoint.GHEMethodOptions endpoint = 50002;
	E_Endpoint = &file_ghe_options_proto_extTypes[2]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// optional grpc.httpendpoint.GHEFileOptions opts = 50002;
	E_Opts = &file_ghe_options_proto_extTypes[0]
)

Extension fields to descriptorpb.FileOptions.

View Source
var File_ghe_options_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GHEFileOptions

type GHEFileOptions struct {

	// Naming convention for generated (default) path.
	// Will not affect manually set path.
	// Acceptable values: `kebab-case`, `snake_case`, `lowerCamelCase`, `UpperCamelCase` or leave empty for not doing any convert.
	PathNamingConvention string            `protobuf:"bytes,1,opt,name=path_naming_convention,json=pathNamingConvention,proto3" json:"path_naming_convention,omitempty"`
	CommonInitialisms    []string          `protobuf:"bytes,2,rep,name=common_initialisms,json=commonInitialisms,proto3" json:"common_initialisms,omitempty"`
	NamingOverride       map[string]string `` /* 191-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GHEFileOptions) Descriptor deprecated

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

Deprecated: Use GHEFileOptions.ProtoReflect.Descriptor instead.

func (*GHEFileOptions) GetCommonInitialisms

func (x *GHEFileOptions) GetCommonInitialisms() []string

func (*GHEFileOptions) GetNamingOverride

func (x *GHEFileOptions) GetNamingOverride() map[string]string

func (*GHEFileOptions) GetPathNamingConvention

func (x *GHEFileOptions) GetPathNamingConvention() string

func (*GHEFileOptions) ProtoMessage

func (*GHEFileOptions) ProtoMessage()

func (*GHEFileOptions) ProtoReflect

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

func (*GHEFileOptions) Reset

func (x *GHEFileOptions) Reset()

func (*GHEFileOptions) String

func (x *GHEFileOptions) String() string

type GHEMethodOptions

type GHEMethodOptions struct {

	// Path for invoke this method with HTTP GET method.
	// Set to `*` to use default value.
	// Set to `=method` (ie. `=post`) to use value set for other HTTP method.
	Get    string `protobuf:"bytes,1,opt,name=get,proto3" json:"get,omitempty"`
	Post   string `protobuf:"bytes,2,opt,name=post,proto3" json:"post,omitempty"`
	Put    string `protobuf:"bytes,3,opt,name=put,proto3" json:"put,omitempty"`
	Delete string `protobuf:"bytes,4,opt,name=delete,proto3" json:"delete,omitempty"`
	Patch  string `protobuf:"bytes,5,opt,name=patch,proto3" json:"patch,omitempty"`
	// Handler function for HEAD method. Applies to all above paths.
	GoHeadHandlerFunc string `protobuf:"bytes,6,opt,name=go_head_handler_func,json=goHeadHandlerFunc,proto3" json:"go_head_handler_func,omitempty"`
	// Handler function for OPTIONS method. Applies to all above paths.
	GoOptionsHandlerFunc string `protobuf:"bytes,7,opt,name=go_options_handler_func,json=goOptionsHandlerFunc,proto3" json:"go_options_handler_func,omitempty"`
	// Function to extract custom HTTP status code from reply object.
	// HTTP status code for error object will not be able to customize.
	GoExtractHttpStatusCode string `` /* 136-byte string literal not displayed */
	// Define the identifier for this endpoint.
	// Use method name if omitted. Required for extra endpoints.
	Ident string `protobuf:"bytes,9,opt,name=ident,proto3" json:"ident,omitempty"`
	// Handler function name for extra endpoint.
	GoHandlerFunc string `protobuf:"bytes,10,opt,name=go_handler_func,json=goHandlerFunc,proto3" json:"go_handler_func,omitempty"`
	// contains filtered or unexported fields
}

func (*GHEMethodOptions) Descriptor deprecated

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

Deprecated: Use GHEMethodOptions.ProtoReflect.Descriptor instead.

func (*GHEMethodOptions) GetDelete

func (x *GHEMethodOptions) GetDelete() string

func (*GHEMethodOptions) GetGet

func (x *GHEMethodOptions) GetGet() string

func (*GHEMethodOptions) GetGoExtractHttpStatusCode

func (x *GHEMethodOptions) GetGoExtractHttpStatusCode() string

func (*GHEMethodOptions) GetGoHandlerFunc

func (x *GHEMethodOptions) GetGoHandlerFunc() string

func (*GHEMethodOptions) GetGoHeadHandlerFunc

func (x *GHEMethodOptions) GetGoHeadHandlerFunc() string

func (*GHEMethodOptions) GetGoOptionsHandlerFunc

func (x *GHEMethodOptions) GetGoOptionsHandlerFunc() string

func (*GHEMethodOptions) GetIdent

func (x *GHEMethodOptions) GetIdent() string

func (*GHEMethodOptions) GetPatch

func (x *GHEMethodOptions) GetPatch() string

func (*GHEMethodOptions) GetPost

func (x *GHEMethodOptions) GetPost() string

func (*GHEMethodOptions) GetPut

func (x *GHEMethodOptions) GetPut() string

func (*GHEMethodOptions) NormalizeValues

func (x *GHEMethodOptions) NormalizeValues()

func (*GHEMethodOptions) ProtoMessage

func (*GHEMethodOptions) ProtoMessage()

func (*GHEMethodOptions) ProtoReflect

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

func (*GHEMethodOptions) Reset

func (x *GHEMethodOptions) Reset()

func (*GHEMethodOptions) String

func (x *GHEMethodOptions) String() string

type GHEServiceOptions

type GHEServiceOptions struct {
	Path              string              `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	StrictPrefixMatch string              `protobuf:"bytes,2,opt,name=strict_prefix_match,json=strictPrefixMatch,proto3" json:"strict_prefix_match,omitempty"`
	ExtraEndpoints    []*GHEMethodOptions `protobuf:"bytes,3,rep,name=extra_endpoints,json=extraEndpoints,proto3" json:"extra_endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*GHEServiceOptions) Descriptor deprecated

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

Deprecated: Use GHEServiceOptions.ProtoReflect.Descriptor instead.

func (*GHEServiceOptions) GetExtraEndpoints

func (x *GHEServiceOptions) GetExtraEndpoints() []*GHEMethodOptions

func (*GHEServiceOptions) GetPath

func (x *GHEServiceOptions) GetPath() string

func (*GHEServiceOptions) GetStrictPrefixMatch

func (x *GHEServiceOptions) GetStrictPrefixMatch() string

func (*GHEServiceOptions) NormalizeValues

func (x *GHEServiceOptions) NormalizeValues()

func (*GHEServiceOptions) ProtoMessage

func (*GHEServiceOptions) ProtoMessage()

func (*GHEServiceOptions) ProtoReflect

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

func (*GHEServiceOptions) Reset

func (x *GHEServiceOptions) Reset()

func (*GHEServiceOptions) String

func (x *GHEServiceOptions) String() string

Jump to

Keyboard shortcuts

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