diff --git a/domain/throttling.go b/domain/throttling.go new file mode 100644 index 0000000..6272732 --- /dev/null +++ b/domain/throttling.go @@ -0,0 +1,11 @@ +package domain + +import ( + "time" +) + +type RateLimitResult struct { + Allow bool + Remaining int + RetryAfter time.Duration +}