18 lines
190 B
Go
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
|
|
)
|
|
|
|
|