Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLimits = map[string]Limit{ "smtp_per_ip": {Count: 100, Window: time.Hour}, "smtp_per_user": {Count: 500, Window: time.Hour}, "smtp_per_domain": {Count: 1000, Window: time.Hour}, "auth_per_ip": {Count: 10, Window: 15 * time.Minute}, "imap_per_user": {Count: 1000, Window: time.Hour}, "api_per_ip": {Count: 100, Window: time.Hour}, "api_per_user": {Count: 1000, Window: time.Hour}, }
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
func NewLimiter ¶
func NewLimiter(repo repository.RateLimitRepository) *Limiter
Click to show internal directories.
Click to hide internal directories.