Documentation
¶
Index ¶
Constants ¶
View Source
const MethodNotFound = jErrors.ConstError("method not found")
Variables ¶
This section is empty.
Functions ¶
func MethodToString ¶
func MethodToString(method MethodType) string
Types ¶
type GrpcSpec ¶
type GrpcSpec struct {
RequestDesc protoreflect.MessageDescriptor
ResponseDesc protoreflect.MessageDescriptor
Service string
Method string
}
type Match ¶
type Match struct {
Params []transformer.Variable
GrpcSpec *GrpcSpec
Pattern string
BodyRule transformer.HTTPBodyRule
}
type MethodType ¶
type MethodType uint
const ( UnknownMethod MethodType = iota CONNECT DELETE GET HEAD OPTIONS PATCH POST PUT TRACE )
func StringToMethod ¶
func StringToMethod(method string) (MethodType, error)
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func (*Route) Method ¶
func (r *Route) Method() MethodType
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouterWithRoutes ¶
Click to show internal directories.
Click to hide internal directories.