From 9763bc4568587464850fd94db8dcca1ff279c753 Mon Sep 17 00:00:00 2001 From: snoop Date: Mon, 28 Nov 2016 14:49:47 +0900 Subject: [PATCH] added discovery --- events/event_discovery.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/events/event_discovery.go b/events/event_discovery.go index 91831ea..ab0a4af 100644 --- a/events/event_discovery.go +++ b/events/event_discovery.go @@ -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 {