This commit is contained in:
jackdaw 2016-11-28 14:25:11 +09:00
parent a7a2d60954
commit efd575b325
2 changed files with 21 additions and 1 deletions

View File

@ -7,6 +7,10 @@ const (
const (
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"
)

View File

@ -1 +1,17 @@
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,
}
}