Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PerMinutes ¶
Types ¶
type Limit ¶
type Limit struct {
// The rate limit signature key.
Key string
// The maximum number of attempts allowed within the given number of minutes.
MaxAttempts int
// The number of minutes until the rate limit is reset.
DecayMinutes int
// The response generator callback.
ResponseCallback func(ctx http.Context)
}
Click to show internal directories.
Click to hide internal directories.