.
This commit is contained in:
parent
cffed7b6f5
commit
33881be914
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user