Documentation
¶
Index ¶
- Variables
- func SetRequestParams(c *fasthttp.RequestCtx, params *Params)
- type Params
- type Route
- type Router
- func (r *Router) Add(method string, path string, fn func(*Route) error) error
- func (r *Router) Clear()
- func (r *Router) Lookup(method []byte, p []byte) (cb func(c *fasthttp.RequestCtx) error, params *Params, ok bool)
- func (r *Router) LookupString(method string, path string) (cb func(c *fasthttp.RequestCtx) error, params *Params, ok bool)
- func (r *Router) ReleaseParams(p *Params)
Constants ¶
This section is empty.
Variables ¶
View Source
var NilParams = &Params{}
Functions ¶
func SetRequestParams ¶
func SetRequestParams(c *fasthttp.RequestCtx, params *Params)
Types ¶
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
func RequestParams ¶
func RequestParams(c *fasthttp.RequestCtx) *Params
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) LookupString ¶
func (*Router) ReleaseParams ¶
Click to show internal directories.
Click to hide internal directories.