commons-go/model/discovery/Port.go

23 lines
522 B
Go
Raw Normal View History

2018-04-26 07:37:59 +00:00
package discovery
2018-04-12 09:38:04 +00:00
import (
"encoding/json"
"github.com/google/gopacket"
2018-04-19 08:25:56 +00:00
"git.loafle.net/overflow/commons-go/core/constants"
2018-04-12 09:38:04 +00:00
"git.loafle.net/overflow/commons-go/core/util"
)
type Port struct {
Host *Host `json:"host,omitempty"`
2018-04-19 08:25:56 +00:00
ID json.Number `json:"id,Number,omitempty"`
PortType constants.PortType `json:"portType,omitempty"`
PortNumber json.Number `json:"portNumber,omitempty"`
2018-04-12 09:38:04 +00:00
DiscoveredDate util.Timestamp `json:"discoveredDate,omitempty"`
UDPLayer gopacket.Layer `json:"-"`
}