Commit Graph

17 Commits

Author SHA1 Message Date
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +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
ionutboangiu
758a94280a Apply project wide fmt 2022-11-16 10:13:44 +01:00
Trial97
a6aa435a8d Updated AcionPlans 2021-06-08 12:05:51 +02:00
TeoV
b8b65bb0b8 Send StoredStatQueue instead of StatQueue when replicate fixes #1864 2020-01-15 14:20:43 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
Trial97
d1d851009a Updated SetStoredStatQueueDrv and removed unused Marshaler function 2019-12-02 13:15:26 +02:00
TeoV
a05d702be5 Rename correctly methods from Replicator 2019-11-21 18:46:00 +01:00
TeoV
ea6485cf0a Implement Replication for Remove methods 2019-11-21 12:58:27 +01:00
TeoV
11fa04f3d0 Implement rest of methods from StorageInterface in DataManager 2019-11-21 12:58:27 +01:00
TeoV
5913709796 Implement RemoveThreshold when replicate is true 2019-11-20 19:48:14 +01:00
TeoV
af1cfc64c8 Implement Replication for all Set Methods 2019-11-20 19:48:14 +01:00
TeoV
62d2a2dbda Add remote functionality for GetDestination/GetReverse 2019-11-20 10:54:31 +01:00
TeoV
25bc80458d Finish get for remote functionality 2019-11-20 10:54:31 +01:00
TeoV
bc5cf765c3 Update Remote functionality through RPC 2019-11-15 13:36:53 +01:00
TeoV
ee37110cfe Add rpc pool for remote connections 2019-11-15 13:36:53 +01:00
TeoV
5cc9f94cc0 Add ReplicatorSv1 for remote/replication functionality 2019-11-15 13:36:53 +01:00