Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalMiddleware []PreMiddleware
GlobalMiddleware 挂载全局中间件处理
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
Middleware 路由校验完毕后的中间件处理
type PreMiddleware ¶
type PreMiddleware interface {
Handle(w http.ResponseWriter, r *http.Request) bool
}
PreMiddleware 请求处理前的处理中间件 - 此时路由还未做校验
Click to show internal directories.
Click to hide internal directories.