model/discovery/Port.go
2018-08-13 15:05:05 +09:00

21 lines
518 B
Go

package discovery
import (
"encoding/json"
"git.loafle.net/overflow/model/meta"
"git.loafle.net/overflow/model/util"
"github.com/google/gopacket"
)
type Port struct {
MetaPortType *meta.MetaPortType `json:"metaPortType,omitempty"`
PortNumber json.Number `json:"portNumber,omitempty"`
DiscoveredDate *util.Timestamp `json:"discoveredDate,omitempty"`
Host *Host `json:"host,omitempty"`
ServiceList []*Service `json:"serviceList,omitempty"`
UDPLayer gopacket.Layer `json:"-"`
}