Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FlowUnknown are unknown flow. FlowUnknown FlowDirection = 1 << iota // FlowActive are 'active open'. FlowActive // FlowPassive are 'passive open' FlowPassive // FilterAll is the filter condition including public and private IP address. FilterAll = "all" // FilterPublic is the filter condition including public IP address. FilterPublic = "public" // FilterPrivate is the filter condition including private IP address. FilterPrivate = "private" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddrPort ¶
type AddrPort struct { Name string `json:"name"` Addr string `json:"addr"` Port string `json:"port"` }
AddrPort are <addr>:<port>
type FlowDirection ¶
type FlowDirection int
FlowDirection are bitmask that represents both Active or Passive.
func (FlowDirection) MarshalJSON ¶
func (c FlowDirection) MarshalJSON() ([]byte, error)
MarshalJSON returns human readable `mode` format.
func (FlowDirection) String ¶
func (c FlowDirection) String() string
String returns string representation.
type HostFlow ¶
type HostFlow struct { Direction FlowDirection `json:"direction"` Local *AddrPort `json:"local"` Peer *AddrPort `json:"peer"` Connections int64 `json:"connections"` Process *Process `json:"process,omitempty"` }
HostFlow represents a `host flow`.
func (*HostFlow) SetLookupedName ¶
func (f *HostFlow) SetLookupedName()
SetLookupedName replaces f.Addr into lookuped name.
Click to show internal directories.
Click to hide internal directories.