-
Attempts counted in the current window. Reset when the bucket locks.
Declaration
Swift
var count: Int -
Declaration
Swift
var windowEnds: Date -
Declaration
Swift
var lockedUntil: Date -
Lockouts within the last day; each one lasts twice as long as the previous one.
Declaration
Swift
var strikes: Int -
Declaration
Swift
var strikesExpire: Date -
Resets whatever has expired. Returns false if nothing is left worth keeping.
Declaration
Swift
mutating func expire(at now: Date) -> Bool
View on GitHub