communicate/events/event_discovery.go
snoop 9763bc4568 added
discovery
2016-11-28 14:49:47 +09:00

27 lines
530 B
Go

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