agent_api/observer/const.go
2017-04-26 18:50:02 +09:00

18 lines
190 B
Go

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
)