In db.go method GetExpiry() placed next to SetExpiry() method.
This commit is contained in:
parent
66d443183f
commit
9658bbd755
@ -14,10 +14,10 @@ var expiredScanInterval = 60 * time.Second
|
||||
type ICaptchaDB interface {
|
||||
New(data string) (ICaptcha, ID)
|
||||
SetExpiry(expiry time.Duration)
|
||||
GetExpiry() time.Duration
|
||||
Image(id ID) (*image.Image, error)
|
||||
Solve(id ID, answer Answer) (bool, error)
|
||||
IsSolved(id ID) bool
|
||||
GetExpiry() time.Duration
|
||||
}
|
||||
|
||||
type CaptchaDB struct {
|
||||
|
Loading…
Reference in New Issue
Block a user