25 Commits

Author SHA1 Message Date
ionutboangiu
117fee4e29 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:24 +01: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
Trial97
e1086b099a Added runtime.Gosched for context switching 2020-09-29 15:47:21 +02:00
Trial97
4961e53956 Added integration test for ApierS service without RALs enabled 2020-06-25 13:24:55 +03: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
TeoV
0fcafbb526 Add backwards compatible with ApierV1/ApierV2 prefix 2020-02-10 11:26:17 +01:00
adragusin
3eaf3232a1 Renamed ApierV1 to APIerSv1/ ApierV2 to APIerSv2 2020-01-30 14:06:48 +01:00
TeoV
a2dc836075 Add Apier as a standalone service 2020-01-29 18:16:51 +01:00
Trial97
94c29c93d2 Updated CDRExporter 2020-01-28 10:07:34 +01:00
Trial97
548f895a87 Updated stordb reload 2020-01-09 12:09:02 +02:00
Trial97
eff74851b7 Updated dataDB reload 2020-01-09 10:49:25 +02:00
Trial97
47e975d0d0 Updated config reload 2020-01-09 08:05:20 +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
TeoV
5cc9f94cc0 Add ReplicatorSv1 for remote/replication functionality 2019-11-15 13:36:53 +01:00
Trial97
b110537b54 Added StorDB config reload 2019-11-09 15:55:49 +01:00
Trial97
29b9a878b1 Added DB reload for RalS 2019-10-28 12:17:15 +01:00
Trial97
52d319cae5 Updated RAL Service 2019-10-28 12:17:15 +01:00
Trial97
e1b0b65730 Renamed Scheduler from apierV1 structure 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
a92348a905 Added ApierV2 as service 2019-10-28 12:17:15 +01:00
Trial97
858c66e1a4 Added ApierV1 as service 2019-10-28 12:17:15 +01:00