This commit is contained in:
jackdaw@loafle.com 2017-04-27 12:20:06 +09:00
parent 9841a665ee
commit b3b5e2df53
3 changed files with 13 additions and 17 deletions

View File

@ -1,17 +0,0 @@
package observer
import "strconv"
type KEY int
func (k KEY) String() string {
return strconv.Itoa(int(k))
}
const (
ADD_CRAWLER = KEY(iota)
REMOVE_CRAWLER
DATA_QUEUE
EVENT_QUEUE
)

View File

@ -0,0 +1,6 @@
package messages
const (
CRAWLER_ADD = "CRAWLER_ADD"
CRAWLER_REMOVE = "CRAWLER_REMOVE"
)

View File

@ -0,0 +1,7 @@
package messages
const (
QUEUE_DATA = "QUEUE_DATA"
QUEUE_EVENT = "QUEUE_EVENT"
)