449 Commits

Author SHA1 Message Date
gezimbll
0400f4a177 added all new subsytems to load with tpreader 2026-01-30 12:56:32 +01:00
arberkatellari
5f2b1f67df Add multiple DB connections functionality 2025-10-19 13:15:57 +02:00
ionutboangiu
e05be683ae change license from GPLv3 to AGPLv3 2025-10-13 09:57:41 +02:00
ionutboangiu
eb9f826ffd Rename IP to IPAllocations 2025-06-03 14:23:29 +02:00
ionutboangiu
eed6b8a51a add implementation for new ips module 2025-05-29 15:46:42 +02:00
arberkatellari
5b66678313 Add offline internal DB functionality for dataDB,storDB & configDB 2025-05-13 17:07:17 +02:00
ionutboangiu
5e46eeb28a move action type definitions to utils 2025-05-03 21:42:36 +02:00
ionutboangiu
eeecae4576 move resources to dedicated package 2025-05-03 21:42:36 +02:00
ionutboangiu
16d131b058 move attributes to dedicated package 2025-04-22 19:33:12 +02:00
ionutboangiu
069cadd618 move routes to dedicated package 2025-04-22 19:33:12 +02:00
ionutboangiu
0b26559d1f move chargers to dedicated package 2025-03-16 16:28:30 +01:00
ionutboangiu
c762de5c28 move rankings to dedicated package 2025-03-10 13:49:34 +01:00
ionutboangiu
47fb25b4ef move trends to dedicated package
reivse/add comments and order of funcs/definitions
2025-03-10 13:49:34 +01:00
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