2018-04-26 16:37:59 +09:00
|
|
|
package discovery
|
2018-04-12 18:38:04 +09:00
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
|
|
|
|
"git.loafle.net/overflow/commons-go/core/util"
|
2018-06-12 22:13:22 +09:00
|
|
|
"git.loafle.net/overflow/commons-go/model/meta"
|
2018-06-12 18:18:11 +09:00
|
|
|
"github.com/google/gopacket"
|
2018-04-12 18:38:04 +09:00
|
|
|
)
|
|
|
|
|
|
|
|
type Port struct {
|
2018-06-12 22:13:22 +09:00
|
|
|
MetaPortType *meta.MetaPortType `json:"metaPortType,omitempty"`
|
|
|
|
PortNumber json.Number `json:"portNumber,omitempty"`
|
|
|
|
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
|
2018-04-12 18:38:04 +09:00
|
|
|
|
2018-06-12 22:13:22 +09:00
|
|
|
Host *Host `json:"host,omitempty"`
|
|
|
|
ServiceList []*Service `json:"serviceList,omitempty"`
|
2018-04-12 18:38:04 +09:00
|
|
|
|
|
|
|
UDPLayer gopacket.Layer `json:"-"`
|
|
|
|
}
|