2016-11-28 05:15:31 +00:00
|
|
|
package events
|
2016-11-28 05:44:02 +00:00
|
|
|
|
|
|
|
type DiscoveryStartEvent struct {
|
|
|
|
Message string
|
|
|
|
Zone int64
|
|
|
|
}
|
|
|
|
|
|
|
|
func (i DiscoveryStartEvent) GetUrl() string {
|
2016-11-28 05:48:38 +00:00
|
|
|
return DISCOVERY_START
|
2016-11-28 05:44:02 +00:00
|
|
|
}
|
|
|
|
|
2016-11-28 05:49:47 +00:00
|
|
|
func NewDiscoveryStartEvent(message string, zone int64) *DiscoveryStartEvent {
|
|
|
|
return &DiscoveryStartEvent{Message: message, Zone: zone}
|
2016-11-28 05:44:02 +00:00
|
|
|
}
|
2016-11-28 05:48:38 +00:00
|
|
|
|
|
|
|
type DiscoveryEndEvent struct {
|
|
|
|
Message string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (i DiscoveryEndEvent) GetUrl() string {
|
2016-11-28 05:49:47 +00:00
|
|
|
return DISCOVERY_END
|
2016-11-28 05:48:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewDiscoveryEndEvent(message string) *DiscoveryEndEvent {
|
|
|
|
return &DiscoveryEndEvent{Message: message}
|
|
|
|
}
|