From 24bc38598a6668843e29db5c2aa0099b857e737f Mon Sep 17 00:00:00 2001 From: "insanity@loafle.com" Date: Tue, 16 May 2017 17:13:28 +0900 Subject: [PATCH] const --- messages/event.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/messages/event.go b/messages/event.go index 175838d..aeb8289 100644 --- a/messages/event.go +++ b/messages/event.go @@ -1,7 +1,12 @@ package messages type Event struct { - Type string + Type int Id string Data []byte } + +const ( + EVT_TYPE_TASK = 1 + EVT_TYPE_NONE = 2 +)