Documentation ¶
Index ¶
- func Init(engine *gin.Engine)
- func MiddlewareAuth() gin.HandlerFunc
- func MiddlewareLog() gin.HandlerFunc
- func MiddlewareParams(ignoreHeaders []string) gin.HandlerFunc
- func MiddlewareRateLimit(limit int, seconds int) gin.HandlerFunc
- func MiddlewareRecovery() gin.HandlerFunc
- func RegistAdminRouter(engine *gin.Engine)
- func RegistOpenApiRouter(engine *gin.Engine)
- func RegistPublicRouter(engine *gin.Engine)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MiddlewareAuth ¶
func MiddlewareAuth() gin.HandlerFunc
func MiddlewareLog ¶
func MiddlewareLog() gin.HandlerFunc
func MiddlewareParams ¶
func MiddlewareParams(ignoreHeaders []string) gin.HandlerFunc
func MiddlewareRateLimit ¶
func MiddlewareRateLimit(limit int, seconds int) gin.HandlerFunc
MiddlewareRateLimit 接口请求次数限流。每多少秒限制多少个请求
func MiddlewareRecovery ¶
func MiddlewareRecovery() gin.HandlerFunc
func RegistAdminRouter ¶
func RegistOpenApiRouter ¶
func RegistPublicRouter ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.