Commit Graph

176 Commits

Author SHA1 Message Date
e6dd1643cf
[feature] Individual localizer for each context
* proposal with context localizer (engine.GetLocalizedMessage shouldn't be used for localizing for individual requests data)
* normal test for SetLocale
* use sync.Map
* method to preload languages into localizer
* DefaultLanguages variable
* PreloadLanguages field in core.Engine
* don't copy sync.Map
* patch for goroutine safety usage of Localizer
* fix for engine constructor
* additional test for localizer middleware, which is more close to real environment
* filter language.Und
* prevent root placeholder tag usage
* remove reduntant bundle storage, deprecated (*core.Localizer).FetchLanguage()
2020-05-18 13:37:24 +03:00
Alex Lushpai
6a6726377d
Adaptations for broken BC in gin 1.6.2 2020-04-29 14:37:24 +03:00
fe94516c5f wait before checking job 2020-04-29 11:29:32 +03:00
48773fbccb adaptations for broken BC in gin 1.6.2, now gin 1.6.2 is the minimum supported version 2020-04-29 10:08:00 +03:00
Alex Lushpai
9cac63ccee
Merge pull request #12 from Neur0toxine/master
improvements for logging
2020-01-09 11:29:03 +03:00
fc90dd21ce make logger locking optional, fix for logger tests 2019-12-27 12:23:10 +03:00
ea81193031 fixes for doc 2019-12-26 18:00:55 +03:00
aca2daae8d better logger coverage 2019-12-26 17:23:26 +03:00
b82d4e8258 better engine coverage 2019-12-26 17:23:26 +03:00
990f4f0697 logger accessor via mutex 2019-12-26 17:23:26 +03:00
9ad220967e allow alternative logger implementations 2019-12-26 17:23:26 +03:00
Alex Lushpai
a0d6a13e77
Merge pull request #11 from Neur0toxine/master
[feature] JobManager
2019-12-17 16:08:45 +03:00
cd31e6ea9e prevent duplicating log items 2019-12-17 14:59:53 +03:00
d7bad94495 method to start all regular jobs in manager 2019-12-17 14:11:29 +03:00
c3d24f3298 additional test for JobManager 2019-12-17 14:02:05 +03:00
f395f06363 more tests 2019-12-17 13:57:39 +03:00
9801b4d47f fixes for tests 2019-12-17 13:50:30 +03:00
37d815ba34 more tests, prevent test hangup 2019-12-17 12:16:54 +03:00
ee1de01b31 changes for JobManager internal logic, partial tests 2019-12-17 10:39:48 +03:00
c191d2c8e0 job manager draft 2019-12-16 17:24:40 +03:00
Alex Lushpai
f42723ab28
Merge pull request #10 from Neur0toxine/master
updated gin to v1.5.0, several other changes
2019-12-13 16:17:22 +03:00
d2f1a124bc fixed possible bug in test 2019-12-13 16:09:09 +03:00
e4156e3ffd test for HTTPClientBuilder client mocking feature 2019-12-13 15:57:18 +03:00
9bd8eca75a removed HTTPClientConfigInterface because it breaks configuration unmarshaling 2019-12-13 12:13:57 +03:00
6057e3cb4f license badge, copyright notice 2019-12-13 10:44:06 +03:00
6f159e5e23 package comment 2019-12-13 10:28:20 +03:00
7186c1aa66 untether HTTPClientBuilder from Engine 2019-12-13 09:30:16 +03:00
d047090307 more tests 2019-12-12 12:13:12 +03:00
20dc1f1aa8 pass error reason to csrf abort handler 2019-12-12 12:06:38 +03:00
5a497fcc73 added goreportcard badge 2019-12-12 12:06:38 +03:00
1e8c4dec51 added LICENSE 2019-12-12 12:06:38 +03:00
adccc7b3b6 code quality improvements 2019-12-12 12:06:38 +03:00
6290301815 updated gin, better code 2019-12-12 12:06:38 +03:00
Ilyas Salikhov
bf689e15b0
Merge pull request #9 from Neur0toxine/master
[improvement] avoid panic if template was added twice
2019-11-28 13:13:42 +03:00
6cab6169b1 better tests, ability to create only dynamic or only static renderer 2019-11-28 12:13:58 +03:00
17b69ea3a3 avoid panic if template was added twice 2019-11-28 11:33:35 +03:00
Ilyas Salikhov
21031e285d
Merge pull request #8 from Neur0toxine/master
[improvement] helper for easy translations check in transports
2019-11-20 16:41:42 +03:00
b8be21b7c3 fixed typo which caused file reading error 2019-11-20 14:53:07 +03:00
87b694bc08 helper for easy translations check in transports 2019-11-20 14:19:22 +03:00
Alex Lushpai
41e873016f
Merge pull request #7 from Neur0toxine/master
[feature] csrf middleware & error collector (mostly for migrations)
2019-10-31 15:09:37 +03:00
3432853c8b csrf middleware 2019-10-31 14:21:39 +03:00
06cab9921d error collector (mostly for migrations) 2019-10-30 17:02:43 +03:00
Alex Lushpai
f2b79fad5c
Merge pull request #6 from Neur0toxine/master
Different changes for load tests & overall correctness
2019-10-30 15:14:19 +03:00
cd50039247 run previously useless test 2019-10-25 13:30:24 +03:00
f9c4a5d462 More tests 2019-10-25 13:18:43 +03:00
37a4c72a4b Possibility to replace HTTP client inside Engine 2019-10-24 16:44:28 +03:00
4e50a20a3c godoc badge 2019-10-18 17:15:41 +03:00
cd5e0e1334 godoc for HTTPClientBuilder 2019-10-18 17:13:39 +03:00
b1ac06c604 fixes for tests & more tests 2019-10-18 15:18:00 +03:00
f5ae2ea6c5 Feature: HTTP client configuration 2019-10-18 13:18:49 +03:00