fix: backend error interceptor

This commit is contained in:
Jonas Kaninda
2024-11-14 14:41:10 +01:00
parent 5951616153
commit 949667cc60
6 changed files with 12 additions and 26 deletions

View File

@@ -27,7 +27,7 @@ import (
// RateLimiter defines requests limit properties.
type RateLimiter struct {
requests int
id int
id string
window time.Duration
clientMap map[string]*Client
mu sync.Mutex
@@ -42,7 +42,7 @@ type Client struct {
ExpiresAt time.Time
}
type RateLimit struct {
Id int
Id string
Requests int
Window time.Duration
Origins []string