Commit Graph

75 Commits

Author SHA1 Message Date
ionutboangiu
0dfe689d8e Add postgres stor_db SSL opts 2024-11-03 13:19:45 +01:00
ionutboangiu
e0c05ecfa7 Add redis pipeline window and limit cfg opts
Set redisPoolPipelineWindow to control duration before pipeline
flush (0 disables implicit pipelining) and redisPoolPipelineLimit
for max commands per pipeline (0 means no limit, only time window
applies).
2024-10-29 18:54:51 +01:00
ionutboangiu
0063ef3822 Add support for mongodb+srv conn format
Option can be found in db opts under the name 'mongoConnScheme'.
2024-09-05 20:46:40 +02:00
ionutboangiu
2f387b5a0e chore: remove unnecessary parentheses
gofmt -r '(a) -> a' -w **/*.go
2024-09-05 20:46:40 +02:00
gezimbll
32ed816de7 Replacing IsSliceMember ,CloneStringSlice and SliceStringEqual with slices package functions 2023-11-01 21:38:27 +01:00
ionutboangiu
113e2a2bdf Replace interface{} with any 2023-05-31 10:22:28 +02:00
ionutboangiu
df1dc5e838 Add StorDB service
Add StorDB to config and services.

Put back the store_cdrs option under cdrs and update the CDRs
service to depend on StorDB.

Define the StorDB interface and add a constructor for it.

Add a constructor for postgres storage.

Add a config sanity check to validate SSL modes for postgres.

Update cgr-engine to consider StorDB on startup.
2023-05-03 10:05:28 +02:00
gezimbll
04d05c3a4f replacing non-meta constants for storage types 2023-03-08 19:13:48 +01:00
ionutboangiu
d9f567b0a3 Rename RedisMaxAttempts to RedisConnectionAttempts 2022-07-14 14:59:28 +02:00
ionutboangiu
81793af5de Make hardcoded options configurable for redis and solve compilation errors 2022-07-07 18:05:14 +02:00
ionutboangiu
924a91c749 Change SSLMode to PgSSLMode 2022-07-03 13:08:52 +02:00
ionutboangiu
523045cc12 Add timeout options for redis and solve compilation errors 2022-07-03 13:08:52 +02:00
andronache98
ecdf5e54ea Changed headers 2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155 Changed headers 2022-03-09 14:14:30 +01:00
ionutboangiu
a927220fdb Rename ItemOpt structs to ItemOpts and repair its diff function 2022-01-14 18:15:59 +01:00
porosnicuadrian
ff143cf5aa Renamed sqlDSNParams into mysqlDSNParams 2022-01-12 12:37:57 +01:00
porosnicuadrian
5912e6aacf Added DSNopts for stor_db 2022-01-12 12:37:57 +01:00
Trial97
cb809f976e Updated internal datadb 2021-10-28 18:03:43 +03:00
ionutboangiu
509b72b2fd Make OutDataDBOpts and OutStorDBOpts into DBOpts structs 2021-10-08 18:24:16 +03:00
ionutboangiu
1c4866ae8a Change name of OptsJson struct for databases 2021-10-08 18:24:16 +03:00
ionutboangiu
9f053c04e8 Add stordb opts to struct and adjust word order in SQLConnMaxLifetime constant 2021-10-08 18:24:16 +03:00
ionutboangiu
c48aa5d4ad Change datadb cfg opts constant names 2021-10-08 18:24:16 +03:00
ionutboangiu
a69d3c5724 Add datadb opts to struct 2021-10-08 18:24:16 +03:00
Trial97
6a3f8ddc57 Updated config 2021-09-20 10:45:14 +02:00
nickolasdaniel
1c64f014b4 Added unit tests for config 2021-05-18 15:03:01 +02:00
Trial97
aef563ae17 Added more diff functions 2021-04-22 21:00:44 +02:00
Trial97
099ae99836 Added some diff functions 2021-04-21 16:38:30 +02:00
Trial97
53f9fded4c Added config_db section 2021-04-19 19:49:39 +02:00
Trial97
c04c0a5adb Added ConfigDB and option to read config from DB 2021-04-16 17:53:36 +02:00
porosnicuadrian
0f70d542f8 Fixed warnings in config package 2021-04-02 13:45:26 +02:00
Trial97
c13a5cf790 Finished implementing the DataNode as a replacement 2021-03-26 13:46:25 +01:00
Trial97
78cbb5932b Added replication filtering 2021-03-09 17:37:59 +01:00
Trial97
5f0150b639 Updated dataDB config structure 2021-03-09 17:37:59 +01:00
Trial97
f6b6e62cf4 Updated unit tests 2021-03-09 17:37:59 +01:00
Trial97
7e90a42c1f Added filtered replication for dataDB items 2021-03-09 17:37:59 +01:00
Trial97
0a7446bdad Added Config in agent request as dataprovider 2021-02-09 15:16:20 +01:00
porosnicuadrian
d220ab88b9 Removed error from AsMapInterface function's signature 2020-12-02 17:07:35 +01:00
Trial97
f158b191f3 Added Clone functions for all config sections 2020-11-27 08:41:56 +01:00
porosnicuadrian
461a7003e5 Removed error from Items field 2020-11-09 09:41:26 +01:00
Trial97
6af358e55e Updated GetConfig and ReloadConfig APIs 2020-11-05 17:07:50 +01:00
Trial97
568df81745 Added cores package and tests for caps 2020-11-05 17:07:50 +01:00
porosnicuadrian
9c8384b42e Covered datadbcfg 2020-10-01 16:55:18 +02:00
porosnicuadrian
893c1af1d1 Updated datadbcfg AsMapInterface method 2020-09-16 19:35:55 +03:00
porosnicuadrian
34ce1addab Updated diameter AsMapInterface method 2020-09-16 19:35:55 +03:00
porosnicuadrian
bebd8f8115 Updated configs AsMapInterface method 2020-09-16 19:35:55 +03:00
Trial97
841264a97a Moved all specific DB options in opts 2020-08-28 14:35:42 +02:00
Trial97
c1a96d21a4 Added support for Redis cluster 2020-08-07 09:27:02 +02:00
Trial97
a381e3a670 Updated RouteID and APIKey options 2020-07-16 15:07:31 +02:00
adragusin
694b6c7173 Updated Event Opts 2020-07-14 10:11:27 +02:00
Dan Christian Bogos
4fe65238f3 Revert " Added tests for modelhelpers" 2020-07-09 16:10:50 +02:00