added
discovery
This commit is contained in:
parent
2c9c23c453
commit
9763bc4568
|
@ -1,7 +1,5 @@
|
||||||
package events
|
package events
|
||||||
|
|
||||||
const ()
|
|
||||||
|
|
||||||
type DiscoveryStartEvent struct {
|
type DiscoveryStartEvent struct {
|
||||||
Message string
|
Message string
|
||||||
Zone int64
|
Zone int64
|
||||||
|
@ -11,8 +9,8 @@ func (i DiscoveryStartEvent) GetUrl() string {
|
||||||
return DISCOVERY_START
|
return DISCOVERY_START
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDiscoveryStartEvent(message string, cidr int64) *DiscoveryStartEvent {
|
func NewDiscoveryStartEvent(message string, zone int64) *DiscoveryStartEvent {
|
||||||
return &DiscoveryStartEvent{Message: message, Zone: cidr}
|
return &DiscoveryStartEvent{Message: message, Zone: zone}
|
||||||
}
|
}
|
||||||
|
|
||||||
type DiscoveryEndEvent struct {
|
type DiscoveryEndEvent struct {
|
||||||
|
@ -20,7 +18,7 @@ type DiscoveryEndEvent struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i DiscoveryEndEvent) GetUrl() string {
|
func (i DiscoveryEndEvent) GetUrl() string {
|
||||||
return DISCOVERY_START
|
return DISCOVERY_END
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDiscoveryEndEvent(message string) *DiscoveryEndEvent {
|
func NewDiscoveryEndEvent(message string) *DiscoveryEndEvent {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user