Commit Graph

436 Commits

Author SHA1 Message Date
armirveliaj
7db65ca62c Clean up DispatcherS 2025-01-17 17:29:46 +01:00
gezimbll
132a2b3bf9 rankings,trends: added implementation,services and tests 2024-11-04 19:03:21 +01:00
gezimblliku
0f81b78321 updated trend profile && trends service implementation 2024-09-23 11:48:04 +02:00
ionutboangiu
fee2712a23 chore: replace interface{} with any 2024-09-05 20:46:40 +02:00
gezimblliku
73a7590f1c added profiles,configs and services for trend && ranking 2024-08-02 09:37:52 +02:00
ionutboangiu
555a143b79 Take out cdrID from SetCDR parameters 2023-12-12 10:09:18 +01:00
ionutboangiu
d29f84169c Move cdrs to its own package
Moved engine/cdr.go to utils/cdr.go.
Moved engine/cdrs.go and engine/cdrs_test.go to cdrs package.
Moved api functions from cdrs/cdrs.go to cdrs/apis.go. Same for the
tests.
Deleted CDRsV1 type and its methods.
2023-12-12 10:09:18 +01:00
ionutboangiu
1cec3751e4 Update SetCDR signature to include the cdrID
Updated mongo indexing for cdrs to take into consideration only the
opts.*cdrID field.

Fixed cdrs_it_test.go test.

Before storing CDRs in CDR processEvents, we are now temporarily generating
the *cdrID in APIOpts (until we decide where this should happen).
2023-12-12 10:09:18 +01:00
ionutboangiu
2ccd6ca74d Add context.Context in SetCDR func signature 2023-12-12 10:09:18 +01:00
ionutboangiu
d5039b3ce8 Add CDRs CRUD queries back and remove TP functions 2023-11-09 20:50:36 +01: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
porosnicuadrian
28619db53d Updated SetRateProfile + drivers and tests 2022-04-01 20:13:27 +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
andronache98
928dbd9e42 Removing StorDB 2022-03-09 14:14:30 +01:00
ionutboangiu
5d2089979c Remove tenant from arguments for config storage functions 2022-03-02 16:02:15 +02:00
ionutboangiu
eb22903fd4 Add get,set,remove functions for config sections using redis + tests 2022-03-02 12:06:33 +02:00
porosnicuadrian
ff5f69cd15 Update code for rates apis/drivers 2022-02-08 19:10:14 +01:00
porosnicuadrian
18866b903a Added getRateProfileRates api/redisDrv + tests 2022-02-08 19:10:14 +01:00
porosnicuadrian
2bcd034c02 Added copunt/list rates for internal driver 2022-02-07 20:04:53 +01:00
porosnicuadrian
e3a96628ba Added GetRateProfileRateIDs apis + redis implementation 2022-02-07 20:04:53 +01:00
porosnicuadrian
e748667165 Updated rates set/get/remove for mongo 2022-02-03 16:11:16 +01:00
porosnicuadrian
ae4e92ded4 Moved marshaler and added to map ratePrf 2022-02-03 16:11:16 +01:00
porosnicuadrian
e84b89186c Updated redis itnerface for rates 2022-02-03 16:11:16 +01:00
andronache98
ec7b1300b8 Removed CDRStorage 2022-01-12 20:14:20 +01:00
andronache98
917e8045a5 Removed set and get for cdrs 2022-01-12 08:44:36 +01:00
Trial97
117f6ccb9b Updated Stats with decimal 2021-11-08 17:03:58 +02:00
porosnicuadrian
717d372fac Added transaction for filter indexes(case of computeIDs) + little update on mongo/redis get/set index 2021-08-24 20:19:53 +02:00
Trial97
34e093f98e Added all dispatcherS APIs 2021-06-17 15:41:41 +02:00
porosnicuadrian
183bddb416 Added back chargers apis + context 2021-06-11 12:34:51 +02:00
porosnicuadrian
788919bdaa Added context for routes methods 2021-05-26 20:05:26 +02:00
ionutboangiu
9ee73dd1ae Add stats APIs and fill in context where needed 2021-05-25 20:16:56 +02:00
ionutboangiu
515245f6e0 Add thresholds APIs and fill in context where needed 2021-05-25 20:16:56 +02:00
ionutboangiu
0462d16143 Add resources APIs and fill in context where needed 2021-05-25 20:16:56 +02:00
Trial97
0a75016833 Updated filter indexing 2021-05-19 15:54:14 +02:00
andronache
53474406e3 Started removing timing 2021-05-18 15:01:27 +02:00
porosnicuadrian
6451d4ab1c Added context in accounts methods for apis 2021-05-17 17:58:44 +02:00
porosnicuadrian
13c102e8b8 Added context for Action apis 2021-05-17 17:58:44 +02:00
andronache
c3e7337cdf Continue removing destination 2021-05-13 16:12:15 +02:00
andronache
661f1c4172 Started removing destination 2021-05-13 16:12:15 +02:00
Trial97
b4768ce99a Added ConfigSv1 and RateSv1 APIs back 2021-04-16 17:53:36 +02:00
Trial97
c04c0a5adb Added ConfigDB and option to read config from DB 2021-04-16 17:53:36 +02:00
Trial97
8aa7009d36 Updated AttributesSv1 APIs 2021-04-13 13:35:03 +02:00
Trial97
2da495af19 Starting adding back AttributesSv1 APIs 2021-04-13 13:35:03 +02:00
porosnicuadrian
5d8e04821a Removed profile from all accounts in all packages 2021-04-09 14:38:42 +02:00
porosnicuadrian
850a43433b Renamed AccountProfile in Accounts from all packages 2021-04-07 19:25:42 +02:00
porosnicuadrian
1f485d7cf9 Started renaming AccountPRofile into Account 2021-04-06 17:15:34 +02:00
Trial97
b028a99050 Removed rals config 2021-04-01 16:36:51 +02:00
Trial97
48205d689d Removed until build 2021-03-30 20:49:53 +02:00
Trial97
c0b66f42aa Starting removing RALs 2021-03-30 20:49:53 +02:00