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
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ func NewID(additionalData string, answer Answer) ID {
return ID(base64.RawURLEncoding.EncodeToString(idHash.Sum(nil)))
}
// CaptchaDB interface with all necessary methods.
type CaptchaDB interface {
// DB interface with all necessary methods.
type DB interface {
New(data string, captcha Captcha) (Captcha, ID)
GetExpiry() time.Duration
SetExpiry(expiry time.Duration)