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 ReloadableRouter ¶
type ReloadableRouter struct {
// contains filtered or unexported fields
}
func WithWrapper ¶
func WithWrapper(router *Router) *ReloadableRouter
func (*ReloadableRouter) Find ¶
func (w *ReloadableRouter) Find(method MethodType, path string) (result *Match)
func (*ReloadableRouter) SetRouter ¶
func (w *ReloadableRouter) SetRouter(router *Router)
Click to show internal directories.
Click to hide internal directories.