Worked on event system, needs a little more work

This commit is contained in:
Torkel Ödegaard
2015-02-04 15:37:26 +01:00
parent a712f1a231
commit 3752379106
12 changed files with 186 additions and 87 deletions
+1 -7
View File
@@ -93,12 +93,6 @@ var (
// PhantomJs Rendering
ImagesDir string
PhantomDir string
//Notifications
NotificationsEnabled bool
RabbitmqUrl string
NotificationsExchange string
)
func init() {
@@ -228,7 +222,7 @@ func NewConfigContext() {
// Notifications
NotificationsEnabled = Cfg.Section("notifications").Key("enabled").MustBool(false)
RabbitmqUrl = Cfg.Section("notifications").Key("rabbitmq_url").MustString("amqp://localhost/")
// validate rabbitmqUrl.
_, err = url.Parse(RabbitmqUrl)
if err != nil {