MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / DownloadRateLimit

Function DownloadRateLimit

middleware/rate-limit.go:107–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107func DownloadRateLimit() func(c *gin.Context) {
108 return rateLimitFactory(common.DownloadRateLimitNum, common.DownloadRateLimitDuration, "DW")
109}
110
111func UploadRateLimit() func(c *gin.Context) {
112 return rateLimitFactory(common.UploadRateLimitNum, common.UploadRateLimitDuration, "UP")

Callers

nothing calls this directly

Calls 1

rateLimitFactoryFunction · 0.85

Tested by

no test coverage detected