CaptchaDB interface was renamed to DB.
This commit is contained in:
parent
0311a391ed
commit
fe2c3c8e59
@ -30,8 +30,8 @@ func NewID(additionalData string, answer Answer) ID {
|
|||||||
return ID(base64.RawURLEncoding.EncodeToString(idHash.Sum(nil)))
|
return ID(base64.RawURLEncoding.EncodeToString(idHash.Sum(nil)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// CaptchaDB interface with all necessary methods.
|
// DB interface with all necessary methods.
|
||||||
type CaptchaDB interface {
|
type DB interface {
|
||||||
New(data string, captcha Captcha) (Captcha, ID)
|
New(data string, captcha Captcha) (Captcha, ID)
|
||||||
GetExpiry() time.Duration
|
GetExpiry() time.Duration
|
||||||
SetExpiry(expiry time.Duration)
|
SetExpiry(expiry time.Duration)
|
||||||
|
Loading…
Reference in New Issue
Block a user