This commit is contained in:
jackdaw 2016-11-28 17:33:28 +09:00
parent cffed7b6f5
commit 33881be914
2 changed files with 12 additions and 3 deletions

View File

@ -5,6 +5,7 @@ import "loafle.com/overflow/collector/discovery/types"
//////////////////////////////////////////////////////////////////////// Port Event Start //////////////////////////////////////////////////////////////////////// Port Event Start
type PortStartEvent struct { type PortStartEvent struct {
Zone int64 Zone int64
Host int64
PortCount uint16 PortCount uint16
} }
@ -12,7 +13,7 @@ func (i PortStartEvent) GetUrl() string {
return PORT_START return PORT_START
} }
func NewPortStartEvent(zone int64, portCount uint16) *PortStartEvent { func NewPortStartEvent(zone int64, host int64, portCount uint16) *PortStartEvent {
return &PortStartEvent{ return &PortStartEvent{
Zone: zone, Zone: zone,
PortCount: portCount, PortCount: portCount,

View File

@ -1,6 +1,9 @@
package events package events
type ServiceEndEvent struct { type ServiceEndEvent struct {
Zone int64
Host int64
Port uint16
ServiceName string ServiceName string
} }
@ -8,6 +11,11 @@ func (i ServiceEndEvent) GetUrl() string {
return SERVICE_END return SERVICE_END
} }
func NewServiceEndEvent(s string) *ServiceEndEvent { func NewServiceEndEvent(z int64, h int64, p uint16, s string) *ServiceEndEvent {
return &ServiceEndEvent{ServiceName: s} return &ServiceEndEvent{
Zone: z,
Host: h,
Port: p,
ServiceName: s,
}
} }