Added a Remove() method to a DB instance.
This commit is contained in:
parent
0b064e8977
commit
691659c2d0
@ -29,6 +29,10 @@ func IsSolved(id captcha.ID) (bool, error) {
|
|||||||
return captchaDb.IsSolved(id)
|
return captchaDb.IsSolved(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Remove(id captcha.ID) error {
|
||||||
|
return captchaDb.Remove(id)
|
||||||
|
}
|
||||||
|
|
||||||
func GetExpiry() time.Duration {
|
func GetExpiry() time.Duration {
|
||||||
return captchaDb.GetExpiry()
|
return captchaDb.GetExpiry()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user