Documentation ¶
Index ¶
- Variables
- type HTTPMethod
- type HTTPScheme
- type Router
- func (*Router) Descriptor() ([]byte, []int)deprecated
- func (x *Router) GetHeaders() []string
- func (x *Router) GetHost() string
- func (x *Router) GetMethods() []HTTPMethod
- func (x *Router) GetPath() string
- func (x *Router) GetPathPrefix() string
- func (x *Router) GetQueries() []string
- func (x *Router) GetSchemes() []HTTPScheme
- func (x *Router) GetSkipClean() bool
- func (x *Router) GetStrictSlash() bool
- func (x *Router) GetUseEncodedPath() bool
- func (*Router) ProtoMessage()
- func (x *Router) ProtoReflect() protoreflect.Message
- func (x *Router) Reset()
- func (x *Router) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HTTPMethod_name = map[int32]string{ 0: "GET", 1: "HEAD", 2: "POST", 3: "PUT", 4: "PATCH", 5: "DELETE", 6: "CONNECT", 7: "OPTIONS", 8: "TRACE", } HTTPMethod_value = map[string]int32{ "GET": 0, "HEAD": 1, "POST": 2, "PUT": 3, "PATCH": 4, "DELETE": 5, "CONNECT": 6, "OPTIONS": 7, "TRACE": 8, } )
Enum value maps for HTTPMethod.
View Source
var ( HTTPScheme_name = map[int32]string{ 0: "HTTP", 1: "HTTPS", } HTTPScheme_value = map[string]int32{ "HTTP": 0, "HTTPS": 1, } )
Enum value maps for HTTPScheme.
View Source
var (
// optional go.terra.mux.Router router = 82295800;
E_Router = &file_mux_mux_proto_extTypes[0]
)
Extension fields to descriptor.MethodOptions.
View Source
var File_mux_mux_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type HTTPMethod ¶
type HTTPMethod int32
const ( HTTPMethod_GET HTTPMethod = 0 HTTPMethod_HEAD HTTPMethod = 1 HTTPMethod_POST HTTPMethod = 2 HTTPMethod_PUT HTTPMethod = 3 HTTPMethod_PATCH HTTPMethod = 4 HTTPMethod_DELETE HTTPMethod = 5 HTTPMethod_CONNECT HTTPMethod = 6 HTTPMethod_OPTIONS HTTPMethod = 7 HTTPMethod_TRACE HTTPMethod = 8 )
func (HTTPMethod) Descriptor ¶
func (HTTPMethod) Descriptor() protoreflect.EnumDescriptor
func (HTTPMethod) Enum ¶
func (x HTTPMethod) Enum() *HTTPMethod
func (HTTPMethod) EnumDescriptor
deprecated
func (HTTPMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use HTTPMethod.Descriptor instead.
func (HTTPMethod) Number ¶
func (x HTTPMethod) Number() protoreflect.EnumNumber
func (HTTPMethod) String ¶
func (x HTTPMethod) String() string
func (HTTPMethod) Type ¶
func (HTTPMethod) Type() protoreflect.EnumType
type HTTPScheme ¶
type HTTPScheme int32
const ( HTTPScheme_HTTP HTTPScheme = 0 HTTPScheme_HTTPS HTTPScheme = 1 )
func (HTTPScheme) Descriptor ¶
func (HTTPScheme) Descriptor() protoreflect.EnumDescriptor
func (HTTPScheme) Enum ¶
func (x HTTPScheme) Enum() *HTTPScheme
func (HTTPScheme) EnumDescriptor
deprecated
func (HTTPScheme) EnumDescriptor() ([]byte, []int)
Deprecated: Use HTTPScheme.Descriptor instead.
func (HTTPScheme) Number ¶
func (x HTTPScheme) Number() protoreflect.EnumNumber
func (HTTPScheme) String ¶
func (x HTTPScheme) String() string
func (HTTPScheme) Type ¶
func (HTTPScheme) Type() protoreflect.EnumType
type Router ¶
type Router struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` PathPrefix string `protobuf:"bytes,3,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"` Methods []HTTPMethod `protobuf:"varint,4,rep,packed,name=methods,proto3,enum=go.terra.mux.HTTPMethod" json:"methods,omitempty"` Headers []string `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"` Queries []string `protobuf:"bytes,6,rep,name=queries,proto3" json:"queries,omitempty"` Schemes []HTTPScheme `protobuf:"varint,7,rep,packed,name=schemes,proto3,enum=go.terra.mux.HTTPScheme" json:"schemes,omitempty"` SkipClean bool `protobuf:"varint,8,opt,name=skip_clean,json=skipClean,proto3" json:"skip_clean,omitempty"` StrictSlash bool `protobuf:"varint,9,opt,name=strict_slash,json=strictSlash,proto3" json:"strict_slash,omitempty"` UseEncodedPath bool `protobuf:"varint,10,opt,name=use_encoded_path,json=useEncodedPath,proto3" json:"use_encoded_path,omitempty"` // contains filtered or unexported fields }
func (*Router) Descriptor
deprecated
func (*Router) GetHeaders ¶
func (*Router) GetMethods ¶
func (x *Router) GetMethods() []HTTPMethod
func (*Router) GetPathPrefix ¶
func (*Router) GetQueries ¶
func (*Router) GetSchemes ¶
func (x *Router) GetSchemes() []HTTPScheme
func (*Router) GetSkipClean ¶
func (*Router) GetStrictSlash ¶
func (*Router) GetUseEncodedPath ¶
func (*Router) ProtoMessage ¶
func (*Router) ProtoMessage()
func (*Router) ProtoReflect ¶
func (x *Router) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.