diff options
author | Emiliano Ciavatta | 2020-10-08 14:58:40 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-10-08 14:58:40 +0000 |
commit | 45948f76dd0a131c3a3b0453ae00c2c3104fd3d5 (patch) | |
tree | 860104f61e67a1efe4fb74481392cf6553ef8550 /caronte.go | |
parent | 584e25f7940954a51e260a21ca5a819ff4b834d3 (diff) |
Add resource controller
Diffstat (limited to 'caronte.go')
-rw-r--r-- | caronte.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -35,7 +35,11 @@ func main() { notificationController := NewNotificationController(applicationContext) go notificationController.Run() - applicationRouter := CreateApplicationRouter(applicationContext, notificationController) + + resourcesController := NewResourcesController(notificationController) + go resourcesController.Run() + + applicationRouter := CreateApplicationRouter(applicationContext, notificationController, resourcesController) if applicationRouter.Run(fmt.Sprintf("%s:%v", *bindAddress, *bindPort)) != nil { log.WithError(err).WithFields(logFields).Fatal("failed to create the server") } |