Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limits ¶
type Limits struct {
// contains filtered or unexported fields
}
func (*Limits) CleanRateLimit ¶
CleanRateLimit resets the rate limit count for a user
func (*Limits) IsRateLimited ¶
IsRateLimited returns an error of type ErrRateLimited if the user is currently rate limited
type RateLimitError ¶
RateLimitError is an error that gets returned when the user has failed the login too much times
func (*RateLimitError) Error ¶
func (e *RateLimitError) Error() string
Click to show internal directories.
Click to hide internal directories.