diff --git a/events/event_discovery.go b/events/event_discovery.go index b3adf69..7bcf046 100644 --- a/events/event_discovery.go +++ b/events/event_discovery.go @@ -1 +1,19 @@ package events + +const ( + DEAFULT = "http://localhost:8080" + DISCOVERY_START = "/_api/collector/event/discovery/status/start" +) + +type DiscoveryStartEvent struct { + Message string + Zone int64 +} + +func (i DiscoveryStartEvent) GetUrl() string { + return DEAFULT + DISCOVERY_START +} + +func NewDiscoveryStartEvent(message string, cidr int64) *DiscoveryStartEvent { + return &DiscoveryStartEvent{Message: message, Zone: cidr} +}