CaptchaDB interface was renamed to DB.

This commit is contained in:
Alexander Andreev 2023-03-05 00:29:44 +04:00
parent 0311a391ed
commit fe2c3c8e59
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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)