commons-go/discovery/model/Port.go

22 lines
444 B
Go
Raw Normal View History

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