Commit Graph

29 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
gezimbll
0f6ef42c2d improving coverage test at engine 2023-03-08 19:14:24 +01:00
gezimbll
951595d55d improving coverage tests at engine 2023-03-01 17:09:47 +01:00
ionutboangiu
a748ab629e Apply gofmt simplify code 2022-12-02 14:24:18 +02:00
ionutboangiu
758a94280a Apply project wide fmt 2022-11-16 10:13:44 +01:00
TeoV
fcc0344fcb Change from LoadValue to Load for Suppliers 2019-08-22 18:19:22 +03:00
TeoV
58bf3cd64c Add *load strategy for suppliers 2019-08-19 11:28:35 +02:00
TeoV
cc818b0199 Update QOS strategy to take the average of metrics 2019-03-06 14:20:50 +01:00
TeoV
33ef54f0fe Add supplier data provider 2019-02-26 12:24:17 +01:00
TeoV
2a77a1036c Update QOS strategy for SupplierS ( consider the worst value for stats) 2019-02-25 20:03:54 +01:00
TeoV
4c7ab559a9 Refactor QOS strategy for sessions 2019-02-25 20:03:54 +01:00
TeoV
8aefa9ace8 Qos strategy consider Weight from SortingData 2018-08-02 19:05:11 +02:00
TeoV
baecd90446 Add 1 more case for suppliers sort 2018-08-02 19:05:11 +02:00
TeoV
909358a124 Update Suppliers stategy 2018-08-01 19:56:36 +02:00
TeoV
f70b9a11f1 Update QOS strategy to show metric:StatID:value 2018-07-30 13:57:38 +02:00
TeoV
bf334c3340 Add QOS as strategy + tests 2018-07-30 13:57:38 +02:00
TeoV
defdc220e0 Add a model test(to be modify) for QOS 2018-07-26 18:24:59 +02:00
TeoV
0f55c6e076 Add infrastructure for QOS strategy for supplierS 2018-07-26 18:24:59 +02:00
TeoV
8956ba07ac Add *highest_cost suppliers strategy 2018-07-25 18:10:32 +02:00
TeoV
1489ebbb51 Update parameters name 2018-03-30 11:00:25 +02:00
TeoV
df405ff3e6 Add test for Attributes and Supplier ( Digest() method ) 2018-01-23 14:49:25 +01:00
TeoV
a0c19be103 Adding SupplierParameters to suppliers 2018-01-17 11:30:38 +01:00
edwardro22
03a718bd35 Replaced SupplierEvent with CGREvent 2017-12-05 10:30:10 +01:00
DanB
705453f97f New supplier data in tariffplan files to replicate *least_cost strategy 2017-12-01 18:43:47 +01:00
edwardro22
400dd606d6 Removed unused library 2017-12-01 18:27:13 +01:00
edwardro22
b7a477bb45 Added tests for CGREvent 2017-12-01 18:27:13 +01:00
DanB
2ab6efc355 Test fix 2017-12-01 15:53:31 +01:00
edwardro22
920e29f053 Added tests for suppliers and libsuppliers 2017-12-01 13:55:10 +01:00
DanB
4a4f88857d SortedSuppliers.SortCost with test 2017-11-30 19:31:24 +01:00