aboutsummaryrefslogtreecommitdiff
path: root/notification_controller.go
diff options
context:
space:
mode:
Diffstat (limited to 'notification_controller.go')
-rw-r--r--notification_controller.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/notification_controller.go b/notification_controller.go
index 3fa3c5b..b9b3b1c 100644
--- a/notification_controller.go
+++ b/notification_controller.go
@@ -27,10 +27,6 @@ import (
)
const (
- InsertNotification = "insert"
- UpdateNotification = "update"
- DeleteNotification = "delete"
-
writeWait = 10 * time.Second
pongWait = 60 * time.Second
pingPeriod = (pongWait * 9) / 10
@@ -122,8 +118,8 @@ func (wc *NotificationController) Run() {
}
}
-func (wc *NotificationController) Notify(event string, eventType string, message interface{}) {
- wc.broadcast <- gin.H{"event": event, "event_type": eventType, "message": message}
+func (wc *NotificationController) Notify(event string, message interface{}) {
+ wc.broadcast <- gin.H{"event": event, "message": message}
}
func (c *client) readPump() {