()
| 87 | } |
| 88 | |
| 89 | func GlobalWebRateLimit() func(c *gin.Context) { |
| 90 | if common.GlobalWebRateLimitEnable { |
| 91 | return rateLimitFactory(common.GlobalWebRateLimitNum, common.GlobalWebRateLimitDuration, "GW") |
| 92 | } |
| 93 | return defNext |
| 94 | } |
| 95 | |
| 96 | func GlobalAPIRateLimit() func(c *gin.Context) { |
| 97 | if common.GlobalApiRateLimitEnable { |
no test coverage detected