Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtendedCapture ¶
func ExtendedCapture(p *Params)
Types ¶
type CapturedPacket ¶
type CapturedPacket struct { Command networking.Command Seen time.Time Direction string }
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (Context) GetCaptureInfo ¶
func (c Context) GetCaptureInfo() gopacket.CaptureInfo
type EntitiesMovements ¶
type Flows ¶
type Flows struct {
// contains filtered or unexported fields
}
Flows utility struct for storing raw packets
type PacketData ¶
type PacketView ¶
type PacketView struct { // time of capture PacketID string `json:"packetID"` ConnectionKey string `json:"connectionKey"` TimeStamp string `json:"timestamp"` IPEndpoints string `json:"ipEndpoints"` PortEndpoints string `json:"portEndpoints"` Direction string `json:"direction"` PacketData networking.ExportedPcb `json:"packetData"` NcRepresentation ncRepresentation `json:"ncRepresentation"` }
PacketView is used to represent data to the frontend UI
func (*PacketView) String ¶
func (pv *PacketView) String() string
type Params ¶
type Params struct { // if command operation code is in this list, send command on the channel WatchCommands map[uint16]interface{} Send chan<- CapturedPacket }
Click to show internal directories.
Click to hide internal directories.