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