Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flow ¶
type Flow struct {
Meta Meta // Flow Src/Dst & Protocol Information
Incoming Counters // Incoming counters
Outgoing Counters // Outgoing counters
CommunityID string // CommunityID
Start time.Time // Start time
End time.Time // Stop time
}
Flow contains flow data
type Meta ¶
type Meta struct {
Transport protos.ProtocolType
Src net.IP
Dst net.IP
IcmpType uint16
IcmpCode uint16
DstPort uint16
SrcPort uint16
}
Meta contains flow metadata
func (Meta) WithCorrectedSource ¶
WithCorrectedSource is a super simple helper function for determin which one is the source IP and updates the values inside accordingly
Click to show internal directories.
Click to hide internal directories.