Versions in this module Expand all Collapse all v1 v1.0.0 Nov 25, 2023 Changes in this version + func HandleStorageRequest(c echo.Context) error + type Limiter struct + LastUpdate time.Time + Mutex *sync.Mutex + Size time.Duration + type ObjectStorage struct + BucketName string + FileName string + ObjectId string + SizeInByte int + UserId int + type RateLimit struct + BlackList map[string]interface{} + Config *RateLimiterConfig + Limiters *cache.Cache + MaxTime time.Duration + TimeStep time.Duration + WhiteList map[string]interface{} + func NewRateLimiter(config *RateLimiterConfig) *RateLimit + func (rl *RateLimit) Allow(key string) bool + func (rl *RateLimit) Use(next echo.HandlerFunc) echo.HandlerFunc + type RateLimiterConfig struct + BlackList []string + Burst int + Rate int + WhiteList []string