Commit Graph

13 Commits

Author SHA1 Message Date
96e8cf0c97
Methods Solve, GetAnswer, IsSolved, and Expiry could be implemented once for a base Captcha struct. But GetImage and generateImage methods should be implemented by all structs that compose with base Captcha struct. 2022-06-26 22:02:38 +04:00
9658bbd755
In db.go method GetExpiry() placed next to SetExpiry() method. 2022-06-26 21:28:22 +04:00
70195a666e
In ICaptcha inteface GenerateImage() method was modified into private. 2022-06-26 21:01:27 +04:00
a23c80ae88
GenerateImage() method was changed to be private. 2022-06-26 21:00:06 +04:00
3251b68629
In instance.go GetExpireInterval() changed to GetExpiry(). And changed name of corresponding field of CaptchaDB to ExpireIn. 2022-06-26 20:53:48 +04:00
bb4b3bd1ba
Method Expire() changed to Expiry(). 2022-06-26 20:52:29 +04:00
f7d55b9c44
In dwelling_captcha.go. Renamed ExpireDate() to ExpiryDate(). In NewDwellingCaptcha() argument expiration changed to expiry. 2022-06-26 20:51:04 +04:00
1dd070abd4
Refactor of db.go to change expiration and expire to expiry. ExpireInterval field renamed to ExpireIn. 2022-06-26 20:49:43 +04:00
2e3d41a628
Changed Expire() method in ICaptcha to Expiry().
ExpireDate() changed to ExpiryDate() and its argument expiration changed to expiry.
2022-06-26 20:47:25 +04:00
be4050d1f5
Removed excessive variable n, and multiplying by time.Second. 2022-06-26 20:36:36 +04:00
7a7c3107d8
Added GetExpireInterval() wrapper for CaptchaDB instance. 2022-06-26 15:46:23 +04:00
c5d159531c
Added GetExpireInterval() method to DB. 2022-06-26 15:44:41 +04:00
21b2f24986
Initial commit with a fully working program, lel. 2022-06-24 23:09:46 +04:00