port event porttype
This commit is contained in:
parent
0f0ca89ac4
commit
6cc0ec1ee0
|
@ -7,16 +7,18 @@ type PortStartEvent struct {
|
|||
Zone int64
|
||||
Host int64
|
||||
PortCount uint16
|
||||
Type string
|
||||
}
|
||||
|
||||
func (i PortStartEvent) GetUrl() string {
|
||||
return PORT_START
|
||||
}
|
||||
|
||||
func NewPortStartEvent(zone int64, host int64, portCount uint16) *PortStartEvent {
|
||||
func NewPortStartEvent(zone int64, host int64, portCount uint16, t string) *PortStartEvent {
|
||||
return &PortStartEvent{
|
||||
Zone: zone,
|
||||
PortCount: portCount,
|
||||
Type: t,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,16 +48,18 @@ type PortEndEvent struct {
|
|||
Zone int64
|
||||
Host int64
|
||||
Histories []*types.PortScanHistory
|
||||
Type string
|
||||
}
|
||||
|
||||
func (i PortEndEvent) GetUrl() string {
|
||||
return PORT_START
|
||||
}
|
||||
|
||||
func NewPortEndEvent(zone int64, host int64, history []*types.PortScanHistory) *PortEndEvent {
|
||||
func NewPortEndEvent(zone int64, host int64, history []*types.PortScanHistory, t string) *PortEndEvent {
|
||||
return &PortEndEvent{
|
||||
Zone: zone,
|
||||
Host: host,
|
||||
Histories: history,
|
||||
Type: t,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user