Commit Graph

85 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
ionutboangiu
82468c580d Replace deprecated ioutil library, remove redundant statements + small optimizations 2022-12-02 14:24:18 +02:00
andronache
428cd37b8e Replaced header in multiple places 2021-11-01 13:50:23 +02:00
adragusin
3eaf3232a1 Renamed ApierV1 to APIerSv1/ ApierV2 to APIerSv2 2020-01-30 14:06:48 +01:00
Trial97
f18525a1db Updated path for cdre 2020-01-30 10:21:48 +01: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
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
adragusin
bf19cfe7ae Updated tests in utils 2019-12-04 10:36:26 -05:00
adragusin
d1787cb3fa Replaced hardcoded strings with consts in RPC.Call methods 2019-11-22 17:30:10 +01:00
Trial97
6e606df61f Updated apier_it_test.go to work with RPC over gob 2019-11-20 14:55:09 +01:00
Trial97
df2fff3952 Using constants instead of bare strings for Call function in cgr-tester 2019-11-15 15:28:04 +01:00
Trial97
0ff11682af Updated cgr-tester 2019-11-15 15:28:04 +01:00
Trial97
a3a59bbb64 Updated cgr-tester 2019-11-14 17:08:45 +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
2fd862ee0e Updated ActionPlanIndexes Redis set name 2019-08-15 15:49:23 +02:00
Tripon Alexandru-Ionut
ad54df15f7 Added Dispatcher Hosts 2019-03-26 19:46:42 +01:00
Trial97
040d2ad3c1 Moved ApierV1.Cache methods to CacheSv1 object 2019-03-18 11:49:16 +01:00
Trial97
a68c76c952 Updated config_path to accept url as path to file 2019-03-14 12:40:19 +01:00
TeoV
f115cf77ef Add FlagSet for each component 2019-03-06 14:20:50 +01:00
TeoV
ee1f11cc42 Rename config_dir with config_path for cgr-engine 2019-03-06 14:20:50 +01:00
DanB
417b4fadff Actions.csv - removing balance direction filter 2019-02-13 11:23:27 +01:00
TeoV
473d8dbc5a Add infrastructure for DispatcherProfile 2019-01-10 15:42:02 +01:00
Trial97
d98ec1a0b3 Resolve ListenCfg conflicts 2018-10-31 11:02:30 +01:00
TeoV
523a41ba56 Fixes #1243 2018-10-26 08:55:49 +02:00
TeoV
3e872ee47a Update TLS config to consider CA from Authorized hosts 2018-10-23 11:24:14 +02:00
Trial97
a4896dbc32 Added General config 2018-10-05 20:33:28 +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
4e859924e3 Add Charger in apier and complete datamanager methods 2018-07-10 15:08:10 +02:00
TeoV
7bd6c5841c Update TLS connection 2018-06-04 11:25:29 +03:00
Anevo
a41dac68d2 Added config.json support for tester 2018-05-22 16:31:37 +02:00
DanB
5f82c34cad Tester loading events from file, tighter guardian exposure, default locking timeout to 0 2018-05-11 17:45:53 +02:00
TeoV
09a5712c15 Update Mongo Driver 2018-01-22 18:30:40 +01:00
TeoV
325d619886 Add Infrastructure for AliasProfiles 2017-12-05 14:41:05 +01:00
TeoV
916b997125 LCRProfile(2) 2017-11-20 19:33:26 +01:00
DanB
095bb4c56c CacheS in engine, config cache exporting update 2017-11-03 13:21:07 +01:00
DanB
6bf57b827d Replacing ParseDurationWithSecs with ParseDurationWithNanosecs in most of the places to allow data units parsing without conversion; tests updated 2017-10-31 17:08:50 +01:00
DanB
0da9a10de7 Removing Direction, PDD, DisconnectCause, Supplier from main fields of CDR; MySQL/Postgres storing nanoseconds instead of seconds for usage, tests update 2017-10-30 18:18:37 +01:00
TeoV
ff92d3f5a4 Add Filter in Cache 2017-10-25 19:38:22 +02:00
TeoV
7a78d074c4 Add StatQueue , StatQueueProfile , Threshold,ThresholdProfile in Cache 2017-10-24 15:25:56 +02:00
TeoV
4f25ef16c9 Add LoadDataDBCache in DataManager 2017-10-20 21:06:38 +02:00
TeoV
88839537ac DataDB -> DataManager 2017-10-09 14:59:27 +03:00
edwardro22
5cf2510065 Changed the parser in cgr-tester to support units 2017-09-22 14:33:31 +00:00
edwardro22
a54bc89345 small optimization 2017-09-19 10:19:47 +00:00
edwardro22
8941cd6c4d Update time to local, fixes #733 2017-09-19 10:12:17 +00:00
edwardro22
f23ad1248a Updated Tester date and added variable usage 2017-09-19 10:02:31 +00:00
edwardro22
b651b06826 Removed copyright from go doc 2017-09-10 15:02:46 +00:00
TeoV
02d9b539bd Merge LoadRatingCache and LoadAccountingCache into LoadDataDBCache 2017-09-07 05:43:33 -04:00