Commit Graph

44 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
ionutboangiu
758a94280a Apply project wide fmt 2022-11-16 10:13:44 +01:00
Trial97
e1086b099a Added runtime.Gosched for context switching 2020-09-29 15:47:21 +02:00
Trial97
1083c0315f Updated cache reload 2020-04-30 16:03:05 +02:00
Trial97
467ae7d271 Updated gob integration tests 2020-04-28 15:54:53 +02:00
Trial97
6da56c095b Updated GetRatingPlansCost and SupplierService.costForEvent 2020-01-13 14:38:58 +02:00
Trial97
49489be7a2 Updated integration tests 2019-12-11 16:56:54 +02:00
DanB
74ed5e9958 CDRs.processEvent with support for cached CDRIDs 2019-12-09 18:37:01 +01:00
TeoV
3c85747fd4 Update integration test and remove RPCConns from precache list 2019-12-04 03:08:34 -05:00
TeoV
eda2958f99 Add skeleton for ConnManager service 2019-12-03 06:44:36 -05:00
TeoV
b33d623e35 Correctly calling CacheSv1.Reload from LoaderS 2019-08-22 18:19:22 +03:00
TeoV
2a90b270f6 Update CacheSv1 API's to accept ArgDispatcher parameters 2019-05-10 06:50:00 +02:00
DanB
81b03d9ce7 Simplified caching in case of ResourceS 2019-04-14 20:28:38 +02:00
TeoV
93cb87bece LoadIDs use time.UnixNanoseconds instead of GenUUID 2019-04-04 14:30:08 +02:00
TeoV
cebb43a6c0 Add cache_versions command in cgr-console and update ApierV1.SetActions 2019-04-02 13:05:18 +02:00
TeoV
eb05a52537 Consider BlanaceBlocker and BlanaceDisable as balance filter in ApierV2.SetActions 2019-04-02 13:05:18 +02:00
DanB
d5ebc2af9e CacheS - close precached channels 2019-03-27 17:05:52 +01:00
DanB
772322e6f4 Redesign of CacheS init 2019-03-27 15:18:26 +01:00
TeoV
8e06267ca3 Implement CacheLoadIDs in tpReader 2019-03-27 11:51:20 +01:00
TeoV
ba419ec67e Adding LoadID methods in storage_interface 2019-03-27 11:51:20 +01:00
Tripon Alexandru-Ionut
ad54df15f7 Added Dispatcher Hosts 2019-03-26 19:46:42 +01:00
Trial97
db3be46f79 Updated caches integration tests 2019-03-18 11:49:16 +01:00
Trial97
040d2ad3c1 Moved ApierV1.Cache methods to CacheSv1 object 2019-03-18 11:49:16 +01:00
Trial97
98df30cd36 Updated precache with filter_indexes 2019-03-15 15:37:55 +01:00
Trial97
b8ff4bdfd9 Removed DerivedChrgerS 2019-02-19 16:42:33 +01:00
Trial97
7442753ed3 Removed AliaseS 2019-02-15 18:01:22 +02:00
DanB
c6fad981a6 DispatcherS.dispatcherForEvent method, exporting MatchingItemIDsForEvent from engine 2019-01-31 11:57:25 +01:00
DanB
fe11d50173 Caching diameterMessageDetails to prepare for ASR 2018-12-30 21:14:28 +01:00
TeoV
8af148da1a Remove CDRStats and LCR 2018-11-21 18:28:33 +01:00
Trial97
c23476c358 Added separate config structures for: HTTP config, Listen config, RalS config. 2018-10-31 11:02:30 +01:00
DanB
52917ce7fe ChargerSv1.Ping implementation 2018-07-10 10:54:16 +02:00
DanB
e5ea978f6f CacheSv1.RemoveGroup API 2018-03-09 19:33:45 +01:00
DanB
63dbd3e714 CacheSv1.HasGroup API 2018-03-09 19:33:45 +01:00
DanB
0a1626cd4f CacheSv1.GetGroupItemIDs API 2018-03-09 19:33:45 +01:00
DanB
f17e501f6f CacheSv1.PrecacheStatus API 2018-03-09 16:16:30 +01:00
DanB
7e59946492 CacheSv1.GetCacheStats API 2018-03-09 12:25:00 +01:00
DanB
d4ae8e5b71 CacheSv1.Clear API 2018-03-08 20:28:34 +01:00
DanB
94ee9cdea8 CacheSv1.HasItem API 2018-03-08 18:54:30 +01:00
DanB
8f8eebfda5 CacheSv1.RemoveItem API 2018-03-08 18:51:23 +01:00
DanB
f3ce00bc3f CacheSv1.GetItemIDs API 2018-03-08 10:21:42 +01:00
DanB
4a4dc80182 CacheSv1.GetItemExpiryTime 2018-03-08 09:32:06 +01:00
DanB
7cb4aea488 Precaching done by CacheS 2018-03-07 18:46:11 +01:00
DanB
9d196c1427 Engine using TransCache instead of built-in 2018-03-06 17:20:04 +01:00
DanB
095bb4c56c CacheS in engine, config cache exporting update 2017-11-03 13:21:07 +01:00