Commit Graph

128 Commits

Author SHA1 Message Date
Alexander Andreev 9658bbd755
In db.go method GetExpiry() placed next to SetExpiry() method. 2022-06-26 21:28:22 +04:00
Alexander Andreev 66d443183f
In README.md a little formatting change to highlight HTTP codes. 2022-06-26 21:03:11 +04:00
Alexander Andreev 63e832c217
In README.md section Usage was added. 2022-06-26 21:01:47 +04:00
Alexander Andreev 70195a666e
In ICaptcha inteface GenerateImage() method was modified into private. 2022-06-26 21:01:27 +04:00
Alexander Andreev 1abd0da118
In Makefile -expire flag fixed to a new -expiry. 2022-06-26 21:00:34 +04:00
Alexander Andreev a23c80ae88
GenerateImage() method was changed to be private. 2022-06-26 21:00:06 +04:00
Alexander Andreev 3ebfcb2c95
In handlers.go GetExpireInterval() changed to GetExpiry(). 2022-06-26 20:54:15 +04:00
Alexander Andreev 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
Alexander Andreev bb4b3bd1ba
Method Expire() changed to Expiry(). 2022-06-26 20:52:29 +04:00
Alexander Andreev f7d55b9c44
In dwelling_captcha.go. Renamed ExpireDate() to ExpiryDate(). In NewDwellingCaptcha() argument expiration changed to expiry. 2022-06-26 20:51:04 +04:00
Alexander Andreev 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
Alexander Andreev 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
Alexander Andreev d04870ae40
-expire flag changed to a new -expiry in systemd unit. 2022-06-26 20:44:38 +04:00
Alexander Andreev 74b8c2d96a
Refactor of main.go to correct terms. 2022-06-26 20:43:18 +04:00
Alexander Andreev be4050d1f5
Removed excessive variable n, and multiplying by time.Second. 2022-06-26 20:36:36 +04:00
Alexander Andreev 0c1972461e
run-test target renamed to just run in Makefile. 2022-06-26 16:49:42 +04:00
Alexander Andreev 3db89cde4f
Removed clean target from Makefile. 2022-06-26 16:49:23 +04:00
Alexander Andreev 4121ba9ad3
A more sane variable names in Makefile. 2022-06-26 16:46:26 +04:00
Alexander Andreev 4bff49fe2f
Added mention of 500 HTTP error code for image endpoint. 2022-06-26 15:47:15 +04:00
Alexander Andreev e30c3663d4
Removed passing of expiration time to HTTP handlers. 2022-06-26 15:46:49 +04:00
Alexander Andreev 7a7c3107d8
Added GetExpireInterval() wrapper for CaptchaDB instance. 2022-06-26 15:46:23 +04:00
Alexander Andreev 4af8d67299
Expiration time now being get from CaptchaDB. 2022-06-26 15:45:42 +04:00
Alexander Andreev c5d159531c
Added GetExpireInterval() method to DB. 2022-06-26 15:44:41 +04:00
Alexander Andreev f0ced332e8
This validity check is reduntant. 2022-06-26 14:55:05 +04:00
Alexander Andreev 1130568e39
Actually, this check is reduntant, move defering to network type check. 2022-06-26 14:54:11 +04:00
Alexander Andreev e9dc53e542
Defer unix-socket remove only if a unix-socket actually being used. 2022-06-26 14:50:39 +04:00
Alexander Andreev 3685907891
Fixed a typo in path to unix-socket. 2022-06-26 14:45:21 +04:00
Alexander Andreev 21b2f24986
Initial commit with a fully working program, lel. 2022-06-24 23:09:46 +04:00