Documentation
¶
Index ¶
- type RegexpRoute
- type Route
- func (r *Route) Exists(regPath string) (exists bool)
- func (r *Route) Get(reqPath string, reqMethod string, extension string) ([]reflect.Value, string, reflect.Type, bool, bool, bool)
- func (r *Route) Rego(vOriginal string, vNew string) (length int, staticPath string, regexpInstance *regexp.Regexp)
- func (r *Route) Set(route string, execFunc string, reqMethod map[string]bool, ...)
- type StaticRoute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegexpRoute ¶
type RegexpRoute struct {
RouteRule string
Regexp *regexp.Regexp
StaticLength int
StaticPath string
ReflectType reflect.Type
RequestMethod map[string]bool
Extensions map[string]bool
BothFuncs map[string]bool
ExecuteFunc string
}
[]*RegexpRoute
type Route ¶
type Route struct {
Static map[string]*StaticRoute
Regexp []*RegexpRoute
}
Click to show internal directories.
Click to hide internal directories.