Commit Graph

12 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
TeoV
a9d7b0698c Connect to dispatcher only when the call is made 2020-05-28 15:34:53 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
DanB
c94dfb6484 Comment removal from dispatcher profile 2019-04-01 19:16:21 +02:00
DanB
fccaf489a4 Dispatcher with support for dynamic hosts 2019-04-01 19:14:52 +02:00
DanB
8b2b5dece0 DispatcherHost.GetRPCConnection 2019-04-01 19:12:14 +02:00
Tripon Alexandru-Ionut
c75482a6dc Updated RemoteHost structure 2019-04-01 18:37:40 +02:00
Tripon Alexandru-Ionut
30d9689082 Added TLS option within TPDispatcherHostConn 2019-03-29 20:25:20 +01:00
Tripon Alexandru-Ionut
ad54df15f7 Added Dispatcher Hosts 2019-03-26 19:46:42 +01:00
DanB
46a919d9f3 Dispatcher.GetConnIDs implementation, profile ReorderFromIndex and Shuffle methods 2019-02-15 15:27:11 +01:00
DanB
be7bcbbf4b Adding Dispatcher.GetInstance method for per request Dispatcher cloning 2019-02-14 20:06:48 +01:00
DanB
e07ba0a3bb Handle *any as subsystem in dispatchers sorting, weight based sorting implementation 2019-01-31 15:07:22 +01:00