Commit Graph

16 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
Trial97
4b7976f920 Updated ServiceManager.StartServices 2020-05-18 12:43:13 +02:00
Trial97
84e05fd8f0 Removed GetInternalChan method from Service interface 2020-05-18 12:43:13 +02:00
Trial97
712a1fd2da Updated services reload 2020-01-06 17:43:54 +02:00
TeoV
76ca5b9d68 Update after rebase 2019-12-12 08:53:55 +02:00
TeoV
4bd4ae3ee9 Add connections through ConnManager 2019-12-12 08:52:49 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
Trial97
52d319cae5 Updated RAL Service 2019-10-28 12:17:15 +01:00
Trial97
a8ad7f786a Renamed GetConnection to NewConnection 2019-10-28 12:17:15 +01:00
Trial97
88fb9c7926 Added connection reload for RALs 2019-10-28 12:17:15 +01:00
Trial97
81556cbf8e Added test for Ral service 2019-10-28 12:17:15 +01:00
Trial97
c821828d93 Updated RALs config 2019-10-28 12:17:15 +01:00
Trial97
e4abc4ea07 Added RalS as service in ServiceManager 2019-10-28 12:17:15 +01:00
Trial97
32c606467f Updated Responder service 2019-10-28 12:17:15 +01:00
Trial97
9dcbaaf06a Added Responder service implementation 2019-10-28 12:17:15 +01:00
Trial97
92df8864b8 Added CDRServer service implementation 2019-10-28 12:17:15 +01:00