.
This commit is contained in:
parent
a7a2d60954
commit
efd575b325
|
@ -7,6 +7,10 @@ const (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
COLLECTOR_INSTALL = "http://localhost:8080/_api/collector/event/status/install"
|
COLLECTOR_INSTALL = "http://localhost:8080/_api/collector/event/status/install"
|
||||||
|
|
||||||
|
PORT_START = "http://localhost:8080/_api/collector/event/port/status/start"
|
||||||
|
PORT_FOUND = "http://localhost:8080/_api/collector/event/port/status/found"
|
||||||
|
PORT_END = "http://localhost:8080/_api/collector/event/port/status/end"
|
||||||
SERVICE_END = "http://localhost:8080/_api/collector/event/service/status/end"
|
SERVICE_END = "http://localhost:8080/_api/collector/event/service/status/end"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1 +1,17 @@
|
||||||
package events
|
package events
|
||||||
|
|
||||||
|
type PortStartEvent struct {
|
||||||
|
Zone int64
|
||||||
|
PortCount int
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i PortStartEvent) GetUrl() string {
|
||||||
|
return SERVICE_END
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewPortStartEvent(zone int64, portCount uint16) *CollectorInstallEvent {
|
||||||
|
return &PortStartEvent{
|
||||||
|
Zone: zone,
|
||||||
|
PortCount: portCount,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user