aboutsummaryrefslogtreecommitdiff
path: root/caronte.go
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-10-08 14:58:40 +0000
committerEmiliano Ciavatta2020-10-08 14:58:40 +0000
commit45948f76dd0a131c3a3b0453ae00c2c3104fd3d5 (patch)
tree860104f61e67a1efe4fb74481392cf6553ef8550 /caronte.go
parent584e25f7940954a51e260a21ca5a819ff4b834d3 (diff)
Add resource controller
Diffstat (limited to 'caronte.go')
-rw-r--r--caronte.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/caronte.go b/caronte.go
index 288563c..d999724 100644
--- a/caronte.go
+++ b/caronte.go
@@ -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")
}