router

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(engine *gin.Engine)

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 RegistAdminRouter(engine *gin.Engine)

func RegistOpenApiRouter

func RegistOpenApiRouter(engine *gin.Engine)

func RegistPublicRouter

func RegistPublicRouter(engine *gin.Engine)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL