added
discovery event
This commit is contained in:
parent
62249143f0
commit
be6347f53c
|
@ -1 +1,19 @@
|
||||||
package events
|
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}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user