ionutboangiu
652d1e68cf
Remove cls fields from service structs
...
now retrieved through registry.Lookup
2025-01-24 12:02:24 +01:00
ionutboangiu
e7152dacf8
Implement ConnManager service
...
Use it to register internal rpc conns instead of ServManager
DispatcherS now waits for AttributeS to start (only when enabled)
2025-01-14 19:00:37 +01:00
ionutboangiu
089dfc00ae
Use SyncedChan to handle shutdown
2025-01-14 19:00:37 +01:00
ionutboangiu
c49e67b2ed
Handle SERVICE_UP/DOWN states on ServManager layer
2025-01-14 19:00:37 +01:00
ionutboangiu
dab152f976
Integrate StateServiceDOWN + registry related refactor
...
Removed redundant IsRunning service method
Removed registry from constructors
Pass registry to Start/Reload/Shutdown service methods
2025-01-14 19:00:37 +01:00
ionutboangiu
396227d639
Refactor ServiceIndexer implementation
...
Renamed to ServiceRegistry
Improved comments
2025-01-10 20:18:08 +01:00
ionutboangiu
c8a3ebe5e8
Use channel instead of context to handle shutdown
2025-01-10 20:18:08 +01:00
ionutboangiu
db301f7901
Remove StorDB service param from service constructors
...
Use ServiceIndexer instead.
Remove CDRs ListenAndServe method.
Pass the storDB connection directly to constructors instead of the
channel.
2024-12-12 11:55:14 +01:00
ionutboangiu
0783984bfe
Remove srvDep from services that don't use it
2024-12-05 20:12:08 +01:00
ionutboangiu
cfdb3e80ca
Integrate state deps across services for SERVICE_UP
2024-12-04 19:28:50 +01:00
DanB
476f5ba877
Services with IntRPCConn method
2024-11-30 19:13:19 +01:00
DanB
6b241ee35b
Adding serviceIndexer and StateDependencies
2024-11-28 14:56:03 +01:00
ionutboangiu
21409fc92e
Add new CommonListenerService
2024-11-14 17:48:09 +01:00
ionutboangiu
0dfe689d8e
Add postgres stor_db SSL opts
2024-11-03 13:19:45 +01:00
ionutboangiu
792bbb3aff
Add set_versions flag to cgr-engine
...
If set to true, it sets/overwrites all versions to the
current ones.
2024-11-01 15:59:39 +01:00
ionutboangiu
a251547408
Use correct consts for stordb types
2024-11-01 15:59:39 +01:00
ionutboangiu
68152ecc62
Consider admins' enabled value for stordb ShouldRun()
2023-11-17 11:22:34 +01:00
ionutboangiu
df1dc5e838
Add StorDB service
...
Add StorDB to config and services.
Put back the store_cdrs option under cdrs and update the CDRs
service to depend on StorDB.
Define the StorDB interface and add a constructor for it.
Add a constructor for postgres storage.
Add a config sanity check to validate SSL modes for postgres.
Update cgr-engine to consider StorDB on startup.
2023-05-03 10:05:28 +02:00
andronache98
03793c0082
Removed storDB from config
2022-03-09 14:14:30 +01:00
porosnicuadrian
4b1f6ab11a
Updated ProcessEventWithGet for cdrs
2022-01-06 17:07:02 +01:00
Trial97
cb809f976e
Updated internal datadb
2021-10-28 18:03:43 +03:00
ionutboangiu
cc2e3a6f72
Fix compilation errors and tests after making opts of type struct
2021-10-08 18:24:16 +03:00
Trial97
87ce843810
Updated services
2021-09-13 16:08:39 +02:00
andronache
e40ee259c0
Renamed opts for DataDB and StorDB
2021-05-07 10:51:16 +02:00
Trial97
cfbe6e709d
Added AdminSv1 service
2021-04-13 13:35:03 +02:00
ionutboangiu
6dc1857b4c
Fix conficts
2021-04-02 14:57:32 +02:00
nickolasdaniel
62f435bdae
Removing unused variables in utils/consts.go
2021-04-02 13:42:52 +02:00
Trial97
b028a99050
Removed rals config
2021-04-01 16:36:51 +02:00
andronache
f20cb871e9
Fixed tests in services
2021-02-09 16:20:59 +01:00
andronache
dbb9216b6e
Modified consts in utils
2021-01-07 18:15:35 +01:00
Trial97
222363f433
Added service dependency map to control the shutdown order. Fixes #2472
2020-12-08 12:59:44 +01:00
Trial97
841264a97a
Moved all specific DB options in opts
2020-08-28 14:35:42 +02:00
Trial97
d8b19f5972
Updated services tests
2020-08-24 18:51:00 +02:00
Trial97
34a3a53de4
Added integration test for ApierS service without RALs enabled
2020-06-25 13:19:45 +03:00
Trial97
c89a43dc54
Updated ServiceManager.StartServices
2020-05-18 13:26:06 +02:00
Trial97
9f8790a3d4
Removed GetInternalChan method from Service interface
2020-05-18 13:26:06 +02:00
TeoV
c7b7740c27
Add support for Mongo for different Marshaler
2020-03-02 10:10:57 +01:00
TeoV
35d19ab4b2
Add TTL option for DataDB/StorDB for type *internal
2020-01-14 08:42:10 -05:00
Trial97
47e975d0d0
Updated config reload
2020-01-09 08:05:20 +02:00
Trial97
b4fe82c6d7
Updated rpcclient library
2019-12-09 18:04:26 +02:00
Trial97
b110537b54
Added StorDB config reload
2019-11-09 15:55:49 +01:00