Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorsMiddleWare ¶
func CorsMiddleWare(next http.HandlerFunc) http.HandlerFunc
CorsMiddleWare 处理跨域
func TimeMiddleWare ¶
func TimeMiddleWare(next http.HandlerFunc) http.HandlerFunc
TimeMiddleWare 日志打印
func TokenMiddleWare ¶
func TokenMiddleWare(next http.HandlerFunc) http.HandlerFunc
TokenMiddleWare Token认证
Types ¶
type MiddleHandler ¶
type MiddleHandler func(next http.HandlerFunc) http.HandlerFunc
MiddleHandler 封装接口
Click to show internal directories.
Click to hide internal directories.