MSP-437 add throttling domain
This commit is contained in:
1 parent
6a8c628570
commit
9e205573ea
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type RateLimitResult struct {
|
||||
Allow bool
|
||||
Remaining int
|
||||
RetryAfter time.Duration
|
||||
}
|
||||
Reference in new issue
Block a user