Commit Graph

1162 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
7dcbd09a1f replacing non-meta constants for storage types 2023-03-08 19:14:24 +01:00
adi
aeb1cf349a Reverse filter indexes updates + tests 2022-12-06 11:40:38 +02:00
adi
c9a9857152 Added relevant paratheses 2022-12-02 18:39:29 +02:00
ionutboangiu
1436bac61c Remove unnecessary paranthesis 2022-12-02 14:24:18 +02:00
ionutboangiu
a748ab629e Apply gofmt simplify code 2022-12-02 14:24:18 +02:00
ionutboangiu
82468c580d Replace deprecated ioutil library, remove redundant statements + small optimizations 2022-12-02 14:24:18 +02:00
ionutboangiu
758a94280a Apply project wide fmt 2022-11-16 10:13:44 +01:00
adi
a6445f641e Displays messages for agents when connect + fixes on call tests 2022-11-11 17:04:59 +01:00
andronache
428cd37b8e Replaced header in multiple places 2021-11-01 13:50:23 +02:00
Trial97
db3bf9f40d Updated build tags 2021-08-30 17:55:51 +03:00
andronache
07111d1e4d Replacing replicate in datamanager 2021-07-13 19:14:30 +02:00
ionutboangiu
2a00b1cd5e Fix typo (parralel->parallel) v0.10 2021-06-30 20:26:02 +02:00
nickolasdaniel
55d46cfa8a Removed caches_conns from RalsCfg 2021-06-17 15:43:22 +02:00
Trial97
07ef7f2609 Replaced max_call_duration config with default_usage for each ToR 2021-02-19 14:22:48 +01:00
Trial97
102bdeb94a SupplierS Require connections to RALs for calculating the cost 2020-10-20 19:54:47 +02:00
Trial97
e1086b099a Added runtime.Gosched for context switching 2020-09-29 15:47:21 +02:00
TeoV
b91f6d02f8 Append to RALs BalanceRatingSubject instead of overwrite 2020-07-21 14:59:14 +02:00
Trial97
9cc3fb8f6b Updated config integration tests 2020-07-20 16:49:49 +02:00
TeoV
40987e13fd Import in v0.10 Concurrent mechanism 2020-07-09 17:27:11 +03:00
Trial97
614f3adb42 Updated integration tests 2020-07-03 11:11:48 +03:00
Trial97
455a5e9485 Updated RSRParser constant handling 2020-07-03 08:18:04 +03:00
Trial97
5692c4db75 Updated RSRParser to not split the string between grave accent 2020-07-03 08:18:04 +03:00
TeoV
7b01fb3918 Add SessionTLLLastUsage as option for an extra debit in case of ttl mechanism 2020-06-22 09:37:12 +02:00
Trial97
8b81b6b8e4 Added *none ERs type. Closes #2201 2020-06-02 15:10:32 +02:00
Trial97
8046c6bfcc Updated check config sanity 2020-05-26 17:46:36 +02:00
Trial97
4b15836b10 Updated error message 2020-05-26 17:46:36 +02:00
Trial97
2324f75cc0 Added file name to configuration parser error 2020-05-26 09:33:34 +02:00
Trial97
ab4944dc1a Removed config.NavigableMap 2020-05-18 12:43:13 +02:00
Trial97
dafe0214e4 Renamed NewPathToItem to NewPathItems 2020-05-18 12:43:13 +02:00
TeoV
3461db493d [CacheS] CacheDataFromDB only if limit for items is different than 0 2020-05-11 17:10:25 +02:00
Trial97
eacce5c5fd Updated Benchmarks for NavigableMap 2020-05-07 12:46:57 +02:00
Trial97
a1e99e37d5 Updated integration tests 2020-05-07 11:19:03 +02:00
Trial97
1d13dd2ec3 Updated unit tests 2020-05-07 11:19:03 +02:00
Trial97
2c53180ac8 Fixed agents unit tests 2020-05-07 11:19:03 +02:00
Trial97
9ef1dd05cc Updated AgentRequest 2020-05-07 11:19:03 +02:00
Trial97
80cdfe78c9 Added OrderedNavigableMap implementation 2020-05-07 11:19:03 +02:00
adragusin
a14dbaeb49 AsMapInterface minor fix 2020-05-06 18:02:30 +02:00
adragusin
1c6811d26a Added AsMapInterface methods 2020-05-05 19:24:20 +02:00
adragusin
4bd0368909 Added AsMapInterface method for some config fields 2020-05-05 19:24:20 +02:00
adragusin
a12dd79b9b Added AsMapInterface method for some config fields 2020-05-05 19:24:20 +02:00
adragusin
1cbe443ab5 Added tests for GeneralCfg.AsMapInterface method 2020-05-05 19:24:20 +02:00
Trial97
467ae7d271 Updated gob integration tests 2020-04-28 15:54:53 +02:00
DanB
9f31c5515c Merge fixes in config 2020-04-08 20:31:04 +02:00
DanB
f76c0a8d12 [Docs] RALs documentation 2020-04-08 20:13:02 +02:00
adragusin
e06ae9c97a Added a new configuration option in ers, row_length 2020-04-07 15:17:37 +02:00
Trial97
7a746a2fd3 Added reload for RPCConnections section from config 2020-03-25 17:26:52 +01:00
DanB
1f05f6e8ae Default rating subject for *mms 2020-03-24 19:16:31 +01:00
DanB
6d9419f773 [Docs] Initial CDRe documentation 2020-03-12 10:31:04 +01:00
TeoV
8e1898e6c9 Add GetRule function for RSRParsers 2020-03-10 10:31:14 +01:00