diff options
author | Emiliano Ciavatta | 2020-10-09 15:07:24 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-10-09 15:07:24 +0000 |
commit | c21541a31fe45ba3a0bafca46415247f3837713e (patch) | |
tree | 9581c6a2801556d602099a64840909a451e61ffd /notification_controller.go | |
parent | d203f3c7e3bcaa20895c0f32f348cd1513ae9876 (diff) |
Add MainPane
Diffstat (limited to 'notification_controller.go')
-rw-r--r-- | notification_controller.go | 8 |
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() { |