Commit Graph

8 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
Trial97
6da56c095b Updated GetRatingPlansCost and SupplierService.costForEvent 2020-01-13 14:38:58 +02:00
adragusin
f247116428 Updated integration tests in apier 2020-01-07 17:53:52 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
Trial97
5cbce1ec43 Removed unused constants 2019-08-08 19:12:47 +02:00
TeoV
5d7db1db47 In case we have UnauthorizedDestination error in GetRatingPlansCost we go to next RatingPlan 2019-08-01 10:38:04 +02:00
TeoV
17db4f634d Add RALsV1.GetRatingPlansCost ( in APIer DispatcherS and in cgr-console ) 2019-07-25 02:55:15 -10:00