In db.go method GetExpiry() placed next to SetExpiry() method.

This commit is contained in:
Alexander Andreev 2022-06-26 21:28:22 +04:00
parent 66d443183f
commit 9658bbd755
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -14,10 +14,10 @@ var expiredScanInterval = 60 * time.Second
type ICaptchaDB interface { type ICaptchaDB interface {
New(data string) (ICaptcha, ID) New(data string) (ICaptcha, ID)
SetExpiry(expiry time.Duration) SetExpiry(expiry time.Duration)
GetExpiry() time.Duration
Image(id ID) (*image.Image, error) Image(id ID) (*image.Image, error)
Solve(id ID, answer Answer) (bool, error) Solve(id ID, answer Answer) (bool, error)
IsSolved(id ID) bool IsSolved(id ID) bool
GetExpiry() time.Duration
} }
type CaptchaDB struct { type CaptchaDB struct {