Documentation ¶
Index ¶
- func Middlewares(handler fasthttp.RequestHandler, middlewares ...Middleware) fasthttp.RequestHandler
- func Split(source []byte, dest [][]byte) [][]byte
- type Middleware
- type Routable
- type Router
- func (router *Router) DELETE(path string, handler fasthttp.RequestHandler)
- func (router *Router) GET(path string, handler fasthttp.RequestHandler)
- func (router *Router) Group(path string, middlewares ...Middleware) Routable
- func (router *Router) HEAD(path string, handler fasthttp.RequestHandler)
- func (router *Router) Handler(ctx *fasthttp.RequestCtx)
- func (router *Router) OPTIONS(path string, handler fasthttp.RequestHandler)
- func (router *Router) PATCH(path string, handler fasthttp.RequestHandler)
- func (router *Router) POST(path string, handler fasthttp.RequestHandler)
- func (router *Router) PUT(path string, handler fasthttp.RequestHandler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middlewares ¶
func Middlewares(handler fasthttp.RequestHandler, middlewares ...Middleware) fasthttp.RequestHandler
Types ¶
type Middleware ¶
type Middleware func(handler fasthttp.RequestHandler) fasthttp.RequestHandler
type Routable ¶
type Routable interface { DELETE(path string, handler fasthttp.RequestHandler) GET(path string, handler fasthttp.RequestHandler) HEAD(path string, handler fasthttp.RequestHandler) OPTIONS(path string, handler fasthttp.RequestHandler) PATCH(path string, handler fasthttp.RequestHandler) POST(path string, handler fasthttp.RequestHandler) PUT(path string, handler fasthttp.RequestHandler) Group(path string, middlewares ...Middleware) Routable }
type Router ¶
type Router struct { NotFound fasthttp.RequestHandler // contains filtered or unexported fields }
func (*Router) Handler ¶
func (router *Router) Handler(ctx *fasthttp.RequestCtx)
Click to show internal directories.
Click to hide internal directories.