Documentation
¶
Index ¶
- Constants
- func AuthMW(next fasthttp.RequestHandler) fasthttp.RequestHandler
- func New() *routing.Router
- func NotFoundHandler(ctx *fasthttp.RequestCtx)
- func RequestInfo(next fasthttp.RequestHandler) fasthttp.RequestHandler
- func TimingMW(next fasthttp.RequestHandler) fasthttp.RequestHandler
- type Middleware
- type Middlewares
Constants ¶
View Source
const ( // CLOSE connection action key CLOSE = "close" // HELLO .. HELLO = "hello" )
Variables ¶
This section is empty.
Functions ¶
func RequestInfo ¶
func RequestInfo(next fasthttp.RequestHandler) fasthttp.RequestHandler
RequestInfo ...
Types ¶
type Middleware ¶
type Middleware func(ctx fasthttp.RequestHandler) fasthttp.RequestHandler
Middleware ...
type Middlewares ¶
type Middlewares []Middleware
Middlewares ..
func (Middlewares) ApplyToHandler ¶
func (ms Middlewares) ApplyToHandler(handler fasthttp.RequestHandler) fasthttp.RequestHandler
ApplyToHandler ...
Click to show internal directories.
Click to hide internal directories.