Documentation
¶
Index ¶
- func RouterHandler(router *Router) func(ctx *fasthttp.RequestCtx)
- type Context
- func (c *Context) Abort()
- func (c *Context) Context() *fasthttp.RequestCtx
- func (c *Context) GetData(key string) string
- func (c *Context) Next() error
- func (c *Context) Param(key string) string
- func (c *Context) Reset()
- func (c *Context) SetData(key string, value interface{})
- func (c *Context) String(value string) error
- type Handler
- type RouteParser
- type RouteStore
- type Router
- func (r *Router) Connect(path string, handlers ...Handler)
- func (r *Router) Delete(path string, handlers ...Handler)
- func (r *Router) Get(path string, handlers ...Handler)
- func (r *Router) Head(path string, handlers ...Handler)
- func (r *Router) Options(path string, handlers ...Handler)
- func (r *Router) Patch(path string, handlers ...Handler)
- func (r *Router) Post(path string, handlers ...Handler)
- func (r *Router) Put(path string, handlers ...Handler)
- func (r *Router) Trace(path string, handlers ...Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RouterHandler ¶
func RouterHandler(router *Router) func(ctx *fasthttp.RequestCtx)
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext(ctx *fasthttp.RequestCtx) *Context
NewContext returns a new Context.
func (*Context) Context ¶
func (c *Context) Context() *fasthttp.RequestCtx
Context returns the fasthttp.RequestCtx
type Handler ¶
func CombineHandlers ¶ added in v1.0.1
type RouteParser ¶ added in v1.0.1
type RouteParser struct {
// contains filtered or unexported fields
}
func Parse ¶ added in v1.0.1
func Parse(route string) RouteParser
Parse parses the route and returns a routeParser
type RouteStore ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.