communicate/events/event_discovery.go
snoop 2c9c23c453 added
discovery
2016-11-28 14:48:38 +09:00

29 lines
542 B
Go

package events
const ()
type DiscoveryStartEvent struct {
Message string
Zone int64
}
func (i DiscoveryStartEvent) GetUrl() string {
return DISCOVERY_START
}
func NewDiscoveryStartEvent(message string, cidr int64) *DiscoveryStartEvent {
return &DiscoveryStartEvent{Message: message, Zone: cidr}
}
type DiscoveryEndEvent struct {
Message string
}
func (i DiscoveryEndEvent) GetUrl() string {
return DISCOVERY_START
}
func NewDiscoveryEndEvent(message string) *DiscoveryEndEvent {
return &DiscoveryEndEvent{Message: message}
}