Commit Graph

219 Commits

Author SHA1 Message Date
Tyschitskaya Maria
e9489f0ab9 camelCase json parameters in Connection and Account models 2022-06-03 17:56:52 +03:00
Alex Lushpai
ea1c7b7c19
update api client 2022-05-17 18:42:48 +03:00
Maria Tyschitskaya
b94e16d3cc update api client 2022-05-17 14:13:49 +03:00
8c5a614c93
Update migration generator to v2 migrations
* update migration generator to v2 migrations
* use %w verb
2022-05-13 13:31:21 +03:00
Alex Lushpai
27aee62487
goroutine-safe BufferLogger 2022-04-22 15:30:43 +03:00
7124c801e8 goroutine-safe BufferLogger 2022-04-22 15:07:56 +03:00
e7d06fa208
Add localizer interfaces (#46)
* add localizer interfaces
* add 1.18 to the supported versions
* use go 1.17 for lint for now
* use localizer interfaces in the library
* fix incorrect naming of the HTTPResponseLocalizer interface
* fix coverage collection
2022-04-22 09:37:16 +03:00
Alex Lushpai
b260c8fb50
disable unused linter for tests 2022-04-22 09:36:36 +03:00
Tyschitskaya Maria
53b2a7e774 disable unused linter for tests 2022-04-21 12:41:37 +03:00
54326b4193
Endpoint field for aws config
* endpoint fields for aws config
* fix for linter
* fix for demo in the readme
2022-04-12 17:11:52 +03:00
tishmaria90
604e6fda58
Add localizer interface 2022-03-28 16:51:41 +03:00
627ceae0bc
Replace old Sentry client with the new SDK
* replace old Sentry client with the new SDK
* do not initialize Sentry SDK twice, correct panic processing
* account prefix for panics
* log errors with account context data
* tests
* linter fixes
* removed 1.18 from available versions
2022-03-18 10:46:22 +03:00
Alex Lushpai
bcef82e969
Trans template in FuncMap 2022-02-17 10:38:12 +03:00
Tyschitskaya Maria
df2a898092 trans template in FuncMap 2022-02-17 09:39:25 +03:00
Alex Lushpai
0126dc9910
Add public methods for gettings allowed domains 2021-12-21 17:35:46 +03:00
Akolzin Dmitry
fafd016fff add public methods for gettings allowed domains 2021-12-21 14:29:44 +03:00
Alex Lushpai
7e21e73711
Credentials backport 2021-12-13 16:52:45 +03:00
5ddaa6fc8a credentials backport 2021-12-13 16:49:42 +03:00
52109ee4ba
Refactoring and new features (#35)
* new error collector & improvements for errors
* update golangci-lint, microoptimizations, linter fixes
* UseTLS10 method
* remove dead code
* add 1.17 to the test matrix
* fix for docstring
* split the core package symbols into the subpackages (if feasible)
2021-12-01 15:40:23 +03:00
b0d5488f5a
One-step connection middlewares (#34) 2021-11-18 10:43:30 +03:00
tishmaria90
65f0ecfa6a
Improve errors handling 2021-11-03 17:27:56 +03:00
Alex Lushpai
6af8588b17
Add secret field for transport 2021-11-02 11:08:50 +03:00
Akolzin Dmitry
e81960e4c6 add secret field for transport 2021-11-02 09:38:27 +03:00
Alex Lushpai
cf9690e2e6
Add a function to format currency value 2021-09-29 11:32:45 +03:00
Andrey Muriy
51cbd9898d Add a function to format currency value 2021-09-29 10:27:36 +03:00
Alex Lushpai
50a8ad5f19
Merge pull request #30 from Neur0toxine/bigger-account-name
update Account.Name size limit
2021-09-20 14:11:37 +03:00
dbfac6a56d update Account.Name size limit 2021-09-20 14:07:47 +03:00
RenCurs
db67f0bcb2
Add embed pack instead packr (#26) 2021-07-29 11:29:31 +03:00
Alex Lushpai
66ab7b4651
Bump gin version to 1.7.2 2021-07-27 15:33:52 +03:00
Sergey Chazov
075b2b452a Bump gin version to 1.7.2 2021-07-27 15:29:08 +03:00
Сергей Чазов
5c010bffa4
New CRM url validator (#27) 2021-07-27 14:29:05 +03:00
92cf5fa5f0
use ISO code for Mexican peso (#25) 2021-03-25 17:20:41 +03:00
Yura
6ae7bdc9a3
extended domain validation (#24) 2021-02-09 15:57:34 +03:00
d15ed7ffec
Static analysis (#23)
* lint stage for a workflow
* golangci-lint config
* lint only new code or last commit
* run lint only for pull requests
2021-02-09 14:57:14 +03:00
Alex Lushpai
2eb1b78871
Update product name, cleanup annotations (#22) 2020-12-15 13:35:47 +03:00
cc4e3b0957
Move CI to GitHub Actions (#21) 2020-11-26 17:11:11 +03:00
2f3b17ad07
build http client with default configuration if there's no client configuration in the config (#20) 2020-11-13 12:04:32 +03:00
6c029e905f
ability to set certificate pool into the HTTP client (#19) 2020-11-12 17:24:40 +03:00
Alex Lushpai
aef37335a6
Update README.md 2020-11-12 14:03:20 +03:00
c79b3b0c0f
Sentry update, go 1.15 support
* Clone() method in Localizer component allows to clone it just like LocalizationMiddleware does.
* RavenClientInterface contains all *raven.Client method, which allows external use without type casting.
* Tests and godoc fix for Go 1.15.
2020-11-12 10:23:27 +03:00
66b13fc30b
enable stacktrace in the core.Engine by default (#17) 2020-10-30 13:05:42 +03:00
ac9e7e768e
All retailCRM currencies support (#16)
* all currencies supported in retailCRM"
* function which allows to pick currency symbol without interacting with map
* tweak for new function test
* check for undefined currency code
* increase timeout for failing test
* refactored test to WaitGroup, which resulted in finding and fixing actual data race in the job object
2020-10-20 15:19:36 +03:00
1de2e5626f
Better stacktrace generation system, better tests for Sentry, new badge 2020-08-03 14:45:16 +03:00
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