Documentation ¶
Index ¶
- Constants
- func PathParams(c *nova.Context) (u url.Values)
- type HeaderRule
- type HostRule
- type MethodRule
- type PathRule
- type Router
- func (h Router) Delete(path string) Router
- func (h Router) Get(path string) Router
- func (h Router) Header(name string, value ...string) Router
- func (h Router) Host(host ...string) Router
- func (h Router) Method(method ...string) Router
- func (h Router) Patch(path string) Router
- func (h Router) Path(path string) Router
- func (h Router) Post(path string) Router
- func (h Router) Put(path string) Router
- func (h Router) Rule(r Rule) Router
- func (h Router) Use(handlers ...nova.HandlerFunc) Router
- type Rule
- type Rules
Constants ¶
View Source
const ContextPathParamsKey = "_path_params"
ContextPathParamsKey key for path params in request.Context()
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HeaderRule ¶
HeaderRule route rule with header restriction
type MethodRule ¶
type MethodRule struct {
Method []string
}
MethodRule route rule with method restriction
type PathRule ¶
type PathRule struct {
Path string
}
PathRule route rule with path restriction and params extraction
type Router ¶
Router router
Click to show internal directories.
Click to hide internal directories.