Commit Graph

31 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
gezimbll
5b0bc1d90b Improving coverage of unit tests 2023-04-17 11:23:46 +02:00
gezimbll
ddfded6c05 Improving unit tests coverage 2023-04-17 11:23:46 +02:00
gezimbll
67d9c634f6 Improving coverage tests engine 2023-03-10 14:14:16 +01:00
adragusin
df3ed18dc5 Added MetaReqRunID const 2020-01-29 16:54:54 +01:00
adragusin
de4f60ecda Added RunID to ChrgSProcessEventReply.AlteredFields 2020-01-29 16:54:54 +01:00
Trial97
999aabdf9f Updated FieldName for attributes 2020-01-20 14:44:36 +02: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
TeoV
46bd095b1e Add Connection from Chargers to Attributes through ConnManager 2019-12-12 08:52:49 +02: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
TeoV
4f563aa5ee Update filters and dataProvider to include ~*req as refix 2019-11-27 11:10:32 -05:00
TeoV
714e37fa63 Populate in data manager rmtDataDbConns and rplDataDBConns 2019-11-03 12:59:10 +01:00
Trial97
c718f90b89 Updated engine integration tests 2019-10-30 12:19:31 +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
4b051121f9 Move constats from engine to utils and remove duplicate structures 2019-08-04 13:23:30 +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
e949b3e37f Updated basic test for dynamic filter values 2019-03-06 16:05:01 +01:00
TeoV
51c10841de Move context out of CGREvent 2019-02-18 11:07:36 +02:00
Tripon Alexandru-Ionut
b6e442e98b Merge remote-tracking branch 'origin/master' 2018-10-05 20:37:26 +03:00
Trial97
a4896dbc32 Added General config 2018-10-05 20:33:28 +03:00
TeoV
41e646499f Clarify cacheRead/CacheWrite for filters 2018-10-05 16:53:13 +02:00
TeoV
6c3e5d80ee Clarify cacheRead / cacheWrite for chargers 2018-09-24 17:54:33 +02:00
TeoV
28ebd8ec4a Add in engine/chargers_test.go test for processEvent 2018-08-30 11:40:06 +02:00
TeoV
4a3888b8f0 Finish test for attributes for multiple runs 2018-07-23 20:31:24 +02:00
TeoV
cfc349b3b3 Update model_helpers to consider tenant for new subsystems 2018-07-12 16:41:57 +02:00
TeoV
78cdc4d05b Complete chargers_test.go in engine 2018-07-12 16:41:57 +02:00
TeoV
5ddbfbfc51 Add Charger in migrator and add API for TPCharger 2018-07-12 16:41:57 +02:00
TeoV
38c087d626 Add test in apier/v1 for Charger 2018-07-12 16:41:57 +02:00