diff options
Diffstat (limited to 'application_context.go')
-rw-r--r-- | application_context.go | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/application_context.go b/application_context.go index 3ac3031..6960c7d 100644 --- a/application_context.go +++ b/application_context.go @@ -13,14 +13,15 @@ type Config struct { } type ApplicationContext struct { - Storage Storage - Config Config - Accounts gin.Accounts - RulesManager RulesManager - PcapImporter *PcapImporter - ConnectionsController ConnectionsController - ServicesController *ServicesController - IsConfigured bool + Storage Storage + Config Config + Accounts gin.Accounts + RulesManager RulesManager + PcapImporter *PcapImporter + ConnectionsController ConnectionsController + ServicesController *ServicesController + ConnectionStreamsController ConnectionStreamsController + IsConfigured bool } func CreateApplicationContext(storage Storage) (*ApplicationContext, error) { @@ -92,6 +93,6 @@ func (sm *ApplicationContext) configure() { sm.PcapImporter = NewPcapImporter(sm.Storage, serverIP, sm.RulesManager) sm.ServicesController = NewServicesController(sm.Storage) sm.ConnectionsController = NewConnectionsController(sm.Storage, sm.ServicesController) + sm.ConnectionStreamsController = NewConnectionStreamsController(sm.Storage) sm.IsConfigured = true - } |