Commit Graph

105 Commits

Author SHA1 Message Date
ionutboangiu
cb7ea790de Update rpcclient library to latest version
Replace all instances of rpcclient.ClientConnector with birpc.ClientConnector.

Pass context, maxReconnectInterval, delayFunc and birpcClient to rpcclient
constructors.

Remove redundant time.Duration conversions (e.g. time.Duration(1*time.Second)
now becomes time.Second.

Add context where needed (context.Background() for tests, context.TODO()
for places where it should be passed from somewhere else).

Implement that functionality of the SessionSv1.Sleep call, in sessions/sessions
instead of apier/v1.

Make changes in utils/server.go (replacing the old rpc2 library with github.com/cgrates/birpc).

Change the way we register birpc methods for sessions in services, using a helper function
defined in engine/libengine.go.
2023-05-03 10:02:15 +02:00
andronache
c24fabcf80 Fixed integration test for loader in engine 2021-10-04 11:33:05 +02:00
Trial97
db3bf9f40d Updated build tags 2021-08-30 17:55:51 +03:00
Trial97
a2a340f251 Updated ApierV1.SetRatingProfile and ApierV1.RemoveRatingProfile. Fixes #3186 2021-08-19 17:47:23 +02:00
Trial97
ca50dd2f73 Updated actionplan cache tests 2021-06-08 12:05:51 +02:00
Trial97
a6aa435a8d Updated AcionPlans 2021-06-08 12:05:51 +02:00
TeoV
3461db493d [CacheS] CacheDataFromDB only if limit for items is different than 0 2020-05-11 17:10:25 +02:00
Trial97
6534543753 Updated integration tests 2020-05-04 19:46:34 +02:00
TeoV
e575fdebe8 Revert a small modification 2020-04-15 16:01:07 +02:00
TeoV
a75ce1f8e1 Move testing for setDDestinations in integration tests 2020-04-15 16:01:07 +02:00
TeoV
b3f7769cb7 Add support for Mongo for different Marshaler 2020-03-01 17:28:31 +01:00
adragusin
35e5fb2f9d renamed dbType *sql to *mysql 2020-01-29 16:54:54 +01:00
adragusin
a836232021 Updated it tests 2020-01-15 10:45:59 -05:00
TeoV
35d19ab4b2 Add TTL option for DataDB/StorDB for type *internal 2020-01-14 08:42:10 -05:00
TeoV
7b72c943a0 Add connections from remote and replicate throuh ConnManager 2020-01-06 09:27:34 -05:00
Trial97
23da9b52c7 Updated engine.GetFilter and DataDB service 2019-12-02 17:52:01 +02:00
TeoV
0f0c05633e Add Destination/ReverseDestination methods in DataManager 2019-11-20 10:54:31 +01:00
TeoV
4edda324e0 Add more tests 2019-11-12 11:45:59 +01:00
TeoV
cc0855ce83 Rename GetAccount with GetAccountDrv and add GetAccount in DataManager 2019-11-07 17:52:59 +01:00
TeoV
714e37fa63 Populate in data manager rmtDataDbConns and rplDataDBConns 2019-11-03 12:59:10 +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
TeoV
ddb242191c Add Caching option for LoaderS 2019-08-22 18:19:22 +03:00
Trial97
0a72423711 Updated CSVStorage 2019-07-15 03:19:20 -10:00
Trial97
f1513907ff Added recursive option to cgr-loader.Fixes#468 2019-07-12 05:13:20 -10:00
TeoV
084b514b01 Make TPReader to remove indexes also 2019-04-14 19:50:41 +02:00
Tripon Alexandru-Ionut
022ad003d6 Renamed DispatcherS CSV file to DispatcherProfiles.csv 2019-03-28 09:35:50 +01:00
TeoV
a15a346148 TPReader use SchedulerS for reloading inster of ApierV1 2019-03-28 09:34:09 +01:00
Tripon Alexandru-Ionut
b2cd78af5d Updated tests with dispatcher hosts 2019-03-26 19:46:42 +01:00
TeoV
06e8b9ea85 Move defaultCaching in general config 2019-03-25 17:40:51 +01:00
Trial97
b8ff4bdfd9 Removed DerivedChrgerS 2019-02-19 16:42:33 +01:00
Trial97
b87dbf650d Removed UserS and modified some meta consts 2019-02-18 12:37:50 +02:00
Trial97
7442753ed3 Removed AliaseS 2019-02-15 18:01:22 +02:00
TeoV
473d8dbc5a Add infrastructure for DispatcherProfile 2019-01-10 15:42:02 +01:00
TeoV
8af148da1a Remove CDRStats and LCR 2018-11-21 18:28:33 +01:00
Trial97
a4896dbc32 Added General config 2018-10-05 20:33:28 +03:00
Trial97
fefa4317bf Added StroreDb config 2018-10-05 14:40:42 +03:00
Trial97
c3ca7b7620 Added DataDbCfg 2018-10-05 14:40:42 +03:00
TeoV
25e3cda1d7 Allow engine to connect to a redis sentinel(+test) 2018-10-03 14:06:22 +02:00
TeoV
a1a43fa181 Clear cacheRead/cacheWrite for thresholds 2018-09-24 17:54:33 +02:00
TeoV
fdd441179d Clarify cacheRead/cacheWrite for statProfiles 2018-09-24 17:54:33 +02:00
TeoV
6d5c379e12 Clarify cacheRead/ cacheWrite for resourceProfile 2018-09-24 17:54:33 +02:00
TeoV
6c3e5d80ee Clarify cacheRead / cacheWrite for chargers 2018-09-24 17:54:33 +02:00
TeoV
8f90f0730e Clarify cacheRead / cacheWrite for suppliers 2018-09-24 12:26:35 +02:00
TeoV
0dc4c9f363 Clarify cacheRead and cacheWrite for attributes 2018-09-23 14:55:49 +02:00
TeoV
d150a6152d Update integration test for new attributes 2018-07-23 20:31:24 +02:00
TeoV
5ddbfbfc51 Add Charger in migrator and add API for TPCharger 2018-07-12 16:41:57 +02:00
DanB
037bb1f0d8 Skel for TPLoader and TPcsvReader, changed file perms in engine 2018-03-11 19:41:30 +01:00
TeoV
92b0728aaa Update AttributeProfile with new changes 2018-01-26 18:40:02 +01:00
edwardro22
8ef2a81d50 Added RemoveFromDatabase and more remove methods and tests 2017-12-12 11:30:07 +01:00