Commit Graph

22 Commits

Author SHA1 Message Date
ionutboangiu
85cc7e03f0 Enable bijson support for SessionSv1 service
Add bidirectional support for sessions while maintaining changing the
current rpc service registration method. Modified methods in
sessionsbirpc.go file to satisfy the birpc.ClientConnector interface
and removed BiRPC prefix before creating the service that's to be
registered.
2023-05-03 10:02:15 +02:00
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
porosnicuadrian
027e0e1f7c Tested different cases for index health 2021-08-18 17:45:26 +02:00
Trial97
33ce18585c Updated server error message 2020-05-29 12:19:59 +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
4c92d43d36 Updated services 2020-01-10 08:04:45 +02:00
Trial97
eff74851b7 Updated dataDB reload 2020-01-09 10:49:25 +02:00
TeoV
d9359c9e8f Add SessionReplication through conn manager 2020-01-07 08:37:24 -05:00
Trial97
21285b4bbc Removed unused connmanager service 2020-01-06 17:43:54 +02:00
TeoV
95477bcabc Add conncetions from Sessions and CDRs through ConnManager 2019-12-12 08:54:42 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
TeoV
ac8f9f4399 Add a PoC for ConnManager with EventReader 2019-12-03 06:44:36 -05:00
adragusin
a2267feba6 Updated test in session 2019-11-13 17:01:00 +01:00
TeoV
722f74f652 Update integration tests 2019-10-30 14:43:10 +01:00
Trial97
6d273d107c Added DB reload for SessionS 2019-10-28 12:17:15 +01:00
Trial97
82771490a2 Updated Session Service 2019-10-28 12:17:15 +01:00
Trial97
a8ad7f786a Renamed GetConnection to NewConnection 2019-10-28 12:17:15 +01:00
Trial97
f6c1801368 Updated SessionS service shutdown 2019-10-28 12:17:15 +01:00
Trial97
45ab2f9257 Added connection reload for SessionS 2019-10-28 12:17:15 +01:00
Trial97
2037cdda82 Added tests for SessionS service 2019-10-28 12:17:15 +01:00
Trial97
123733a963 Added Session as service in ServiceManager 2019-10-28 12:17:15 +01:00