Documentation
¶
Index ¶
- Constants
- func AnyHandler(c *gin.Context)
- func CheckHeader(c *gin.Context)
- func CustomLoggerMiddleware(c *gin.Context)
- func CustomRecoveryMiddleware(c *gin.Context)
- func LimitMiddleware(c *gin.Context)
- func LimitMiddleware2(ip string, pass bool, count int, res *types.LimitResponse, h string) (bool, func(string))
- func SetMaxRequestBodySize(c *gin.Context)
Constants ¶
View Source
const ( MaxRequestBodySize = 1 << 20 / 2 // 0.5 MB MaxResponseBodySize = 100 << 20 // 100 MB )
Variables ¶
This section is empty.
Functions ¶
func AnyHandler ¶
func CheckHeader ¶
func CustomLoggerMiddleware ¶
func LimitMiddleware ¶
func LimitMiddleware2 ¶
func SetMaxRequestBodySize ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.