Commit Graph

712 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
3fac828218 Remove responder from the list of services managed by the ServiceManager
Since Responder can be started/reloaded/shut down through RALs, there is no need for ServiceManager to also be responsible for it. It also solves an issue where the RALs service would not be properly started because the manager had already started Responder before, and when RALs would try to do it as well, it returned with a 'service already running' error.
2023-03-28 17:59:32 +02:00
porosnicuadrian
15612464e8 Double check on config sanity in cgr-engine.go 2021-04-06 11:14:20 +03:00
TeoV
40987e13fd Import in v0.10 Concurrent mechanism 2020-07-09 17:27:11 +03:00
Trial97
8b81b6b8e4 Added *none ERs type. Closes #2201 2020-06-02 15:10:32 +02:00
Trial97
33ce18585c Updated server error message 2020-05-29 12:19:59 +02:00
Trial97
84e05fd8f0 Removed GetInternalChan method from Service interface 2020-05-18 12:43:13 +02:00
DanB
f2aee9c2a4 Var rename in cgr-engine for APIerSv1 2020-05-08 18:07:08 +02:00
TeoV
87095fa53b Correct using a connID with two connections one of it *internal 2020-03-01 17:28:31 +01:00
adragusin
3eaf3232a1 Renamed ApierV1 to APIerSv1/ ApierV2 to APIerSv2 2020-01-30 14:06:48 +01:00
TeoV
a2dc836075 Add Apier as a standalone service 2020-01-29 18:16:51 +01:00
Trial97
a4870c5434 Updated FailedCDR posting 2020-01-28 10:07:34 +01:00
adragusin
f775181602 Added checkConfig flag at cgr-engine 2020-01-23 17:49:46 +02:00
TeoV
4083cf5627 Remove CDRC compoment ( replaced by EventReader) 2020-01-22 13:53:18 +02:00
adragusin
6605acec40 Added CGRateS and Go version at start 2020-01-21 18:14:57 +02:00
adragusin
3074d01797 updated IT tests in agents 2020-01-21 17:54:43 +02:00
adragusin
be393fd639 Updated IT tests 2020-01-17 17:55:00 +02:00
adragusin
8db2b85037 Updated IT tests/Updated systemd file (fixes #1859) 2020-01-16 18:07:02 +02:00
Dan Christian Bogos
95c2969452 Merge pull request #1853 from Trial97/master
Updated stordb config reload
2020-01-09 11:25:36 +01:00
TeoV
1e89bbacbe Make FilterS to use connections through connManager and update general_tests package 2020-01-09 11:57:04 +02:00
Trial97
47e975d0d0 Updated config reload 2020-01-09 08:05:20 +02:00
Trial97
d60ac504b1 Updated ConfigSv1.ReloadSections to ConfigSv1.ReloadConfigFromJSON 2020-01-09 08:05:20 +02:00
Trial97
21285b4bbc Removed unused connmanager service 2020-01-06 17:43:54 +02:00
TeoV
7b72c943a0 Add connections from remote and replicate throuh ConnManager 2020-01-06 09:27:34 -05:00
TeoV
cc14c1e25a Add Attribute connection from DispatcherS through ConnManager 2019-12-18 08:13:21 -05:00
TeoV
28868e8852 Add connections from Agents through ConnManager 2019-12-12 08:54:42 +02:00
TeoV
2ee574002a Add support for BiRPC in ConnManager 2019-12-12 08:54:42 +02:00
TeoV
c73ca0c954 Add connections from Agents through ConnManager 2019-12-12 08:54:42 +02:00
TeoV
95477bcabc Add conncetions from Sessions and CDRs through ConnManager 2019-12-12 08:54:42 +02:00
TeoV
76ca5b9d68 Update after rebase 2019-12-12 08:53:55 +02:00
TeoV
4bd4ae3ee9 Add connections through ConnManager 2019-12-12 08:52:49 +02:00
TeoV
18150825bb Add connections from Suppliers through ConnManager 2019-12-12 08:52:49 +02:00
TeoV
9435b99f1d Add connection from ThresholdS to ResourceS through ConnManager 2019-12-12 08:52:49 +02:00
TeoV
27789c4d36 Add connection from StatS to Threshold through ConnManager 2019-12-12 08:52:49 +02:00
TeoV
46bd095b1e Add Connection from Chargers to Attributes through ConnManager 2019-12-12 08:52:49 +02:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
Dan Christian Bogos
795093b4d4 Merge pull request #1803 from adragusin/master
Updated tests in utils
2019-12-04 17:47:23 +01:00
Dan Christian Bogos
84ec135be4 Merge pull request #1801 from TeoV/master
Remove prefix when add items in internalDB
2019-12-04 17:45:54 +01:00
adragusin
bf19cfe7ae Updated tests in utils 2019-12-04 10:36:26 -05:00
TeoV
cc680d7b3e Remove debug prints 2019-12-04 07:50:52 -05:00
TeoV
4a201c6f9e Remove prefix when add items in internalDB 2019-12-04 07:29:32 -05:00
Trial97
8f07c5029d Updated dispatcher integration tests for gob RPC 2019-12-04 11:34:17 +02:00
TeoV
7d80180784 Active check sanity for EventReader 2019-12-03 09:56:25 -05:00
TeoV
ac8f9f4399 Add a PoC for ConnManager with EventReader 2019-12-03 06:44:36 -05:00
TeoV
76c6af8538 Make a PoC for RPCConns with ERs 2019-12-03 06:44:36 -05:00
Trial97
a75a7098ad Updated engine tests 2019-12-02 11:07:48 +02:00
adragusin
d1787cb3fa Replaced hardcoded strings with consts in RPC.Call methods 2019-11-22 17:30:10 +01:00
TeoV
5cc9f94cc0 Add ReplicatorSv1 for remote/replication functionality 2019-11-15 13:36:53 +01:00
Trial97
c22ce5f7bb Updated services integration tests 2019-11-09 15:55:49 +01:00
Trial97
b110537b54 Added StorDB config reload 2019-11-09 15:55:49 +01:00