Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Aug 16, 2024
1 parent 386a0b8 commit 8bc53c0
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions go/middleware/ratelimit/rate_limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,6 @@ func isSignup(path string) bool {
return strings.HasPrefix(path, "/signup")
}

type RateLimiterConfiguration struct {
IgnorePrefix string

GlobalLimit int64
GlobalInterval time.Duration

EmailLimit int64
EmailInterval time.Duration
EmailIsGlobal bool
EmailVerifyEnabled bool

SMSLimit int64
SMSInterval time.Duration

BruteForceLimit int64
BruteForceInterval time.Duration

SignupsLimit int64
SignupsInterval time.Duration
}

func RateLimit( //nolint:cyclop,funlen
ignorePrefix string,
globalLimit int,
Expand Down

0 comments on commit 8bc53c0

Please sign in to comment.