ionutboangiu
38578524da
Upgrade MongoDB driver to v1.12
...
- Set (but comment) serverAPI options (currently distinct api and
create.size BSON field are deprecated + possible others that are untested)
- Remove the custom time decoder used for mongo BSON
datetime values. The custom decoder was only converting these values
into UTC and was not any different from the default time.Time
decoder in the MongoDB driver, which also handles BSON string, int64,
and document values.
- Implement 'buildURL' function to connect to mongo (can also be
used for mysql and postgres)
- Update function names, variable names, and comments for clarity
- Replace 'bsonx.Regex' with the Regex primitive for v1.12 compatibility
- Use simple concatenation instead of Sprintf
- Declare 'decimalType' locally, replace global 'decimalType'
- Simplify several functions without altering functionality
- Converting directly from a D to an M is deprecated. We are now decoding
directly in a M.
- Used errors.As and errors.Is for proper error comparison and assertion
- Revised sloppy reassignments and added missing error checks
2023-10-27 18:51:01 +02:00
arberkatellari
5f04bcfe66
Add locks for dns service and agent
2023-06-27 11:06:27 +02:00
ionutboangiu
6c16ff320f
Replace interface{} with any
2023-05-31 10:23:12 +02:00
gezimbll
5c4bf0e538
changing db type constants with leading *
2023-03-08 19:15:23 +01:00
ionutboangiu
aaea87eb33
Make data and stordb opts into structs
2022-07-12 17:59:09 +02:00
porosnicuadrian
f204d474bd
Added DSN params for sql exporter and storDB
2022-01-12 11:56:29 +01:00
Trial97
291a959ec8
Updated internal dataDB
2021-10-21 14:30:20 +03:00
Trial97
239cbb7365
Updated Redis storage
2021-10-08 11:12:04 +03:00
andronache
bc4979b74a
Renamed opts for DataDB and StorDB
2021-05-06 13:57:30 +02:00
Trial97
c13a5cf790
Finished implementing the DataNode as a replacement
2021-03-26 13:46:25 +01:00
andronache
0d36b0cecf
Changed Opts in structs in apier to APIOpts
2021-03-23 14:35:11 +01:00
andronache
806c8295be
Finished changing Opts to APIOpts for structs used in api_interfaces
2021-03-23 14:35:11 +01:00
Trial97
f2c9ca3530
Fixed typo in license header
2021-03-10 16:22:37 +01:00
Trial97
6aa28fc9f5
Added MySQL Location as an option for storDB
2021-02-26 17:23:53 +01:00
andronache
4ff3b9242d
Consts in utils
2021-01-07 18:15:35 +01:00
andronache
dbb9216b6e
Modified consts in utils
2021-01-07 18:15:35 +01:00
andronache
570356b459
Changed consts in utils and repaired account profiles it testin apier/v1
2021-01-07 18:15:35 +01:00
TeoV
f1c823761b
[DataDB] Add support for redis with TLS connection ( + integration test ) fixes #2435
2020-10-15 18:34:21 +02:00
TeoV
21120eb9b6
Add "redis_" prefix to "dataDB" option for redis
2020-10-15 12:42:28 +02:00
Trial97
6eb4be05c2
Updated mongoDB driver constructor
2020-09-04 12:32:09 +02:00
Trial97
4fe3b8e257
Removed TenantArg
2020-09-04 12:32:09 +02: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
cfebb0d616
Finished upgrading the Redis driver
2020-08-07 09:27:02 +02:00
Trial97
11dac21b88
Starting replacing ArgDispatcher with Opts
2020-07-30 11:17:57 +02:00
TeoV
c7b7740c27
Add support for Mongo for different Marshaler
2020-03-02 10:10:57 +01:00
TeoV
35d19ab4b2
Add TTL option for DataDB/StorDB for type *internal
2020-01-14 08:42:10 -05:00
Trial97
28cc543389
Updated NewInternalDB
2019-12-02 11:07:48 +02:00
DanB
33483edc93
Modified NewInternalDB signature to include encoding, renamed MetaJSONRpc -> MetaJSON
2019-11-29 20:54:32 +01:00
Trial97
f6bbccb213
Remove redundant functions
2019-11-09 15:55:49 +01:00
TeoV
722f74f652
Update integration tests
2019-10-30 14:43:10 +01:00
Trial97
8d655d8b57
Added sslmode for storDB config. Fixes#1715
2019-10-28 18:00:32 +01:00
Trial97
61fc8c98a3
Added DataManager as Service
2019-10-28 12:17:15 +01:00
TeoV
d3e7867535
Add StorDBPrefixIndexedFields for customize cdr indexes for InternalDB
2019-10-04 20:17:40 +02:00
TeoV
cf7a397c4c
Implement a model for get/set CDRs for InternalDB
2019-10-04 20:17:40 +02:00
TeoV
d930e82886
Add tests for Offline TariffPlans
2019-10-04 20:17:40 +02:00
TeoV
a27a03b7f6
Implement more methods for InternalDB
2019-10-04 20:17:40 +02:00
TeoV
a6eb92d448
Start Adding InternalStorage instead of MapStorage
2019-10-04 20:17:40 +02:00
TeoV
22250fe9cc
Add Wrapper for CDR and ExternalCDR and use it in methods
2019-04-08 17:59:57 +02:00
TeoV
870637077f
Finish adding CDRS in DispatcherS and update methods from CDRs to other subsystems
2019-04-08 17:59:57 +02:00
Trial97
7446aea042
Separeted mongo storeDB and dataDB Versions
2018-12-17 13:42:10 +01:00
Trial97
c23476c358
Added separate config structures for: HTTP config, Listen config, RalS config.
2018-10-31 11:02:30 +01:00
TeoV
83f21c17fe
Update redis sentinel to accept multiple sentinels and failover
2018-10-05 13:38:29 +02:00
TeoV
25e3cda1d7
Allow engine to connect to a redis sentinel(+test)
2018-10-03 14:06:22 +02:00
TeoV
739edadea8
Fixes #1185
2018-08-30 12:55:13 +02:00
TeoV
ba71e7f234
Update config for internal dataDB
2018-07-03 16:58:07 +02:00
TeoV
85f73f2773
Add support for *internal as dataDB and storDB
2018-07-03 16:58:07 +02:00
TeoV
3bc1cd511a
Add new infrastructure for migrator
2018-05-09 17:36:05 +02:00
DanB
e48319c709
Migrator SessionSCosts v2->v3, incremental updates
2018-04-27 15:44:41 +02:00
DanB
cb7d471fd0
CDR with EventCost instead of CallCost as CostDetails
2018-04-27 11:56:46 +02:00