Documentation ¶
Index ¶
- func IsPublicIP(IP net.IP) bool
- type Packet
- type Packets
- type Record
- func (r *Record) AddExtraDataRecord(e *unified2.ExtraDataRecord)
- func (r *Record) AddPacketRecord(e *unified2.PacketRecord)
- func (r *Record) GetDestination() net.IP
- func (r *Record) GetGID() uint64
- func (r *Record) GetImpact() uint8
- func (r *Record) GetPackets() Packets
- func (r *Record) GetPriority() uint32
- func (r *Record) GetProtocol() string
- func (r *Record) GetSID() uint64
- func (r *Record) GetSource() net.IP
- func (r *Record) GetTime() time.Time
- func (r *Record) IsLocal() bool
- func (r *Record) IsValid() bool
- func (r *Record) SetEventRecord(e *unified2.EventRecord)
- type SIDMapItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPublicIP ¶
Types ¶
type Record ¶
type Record struct { Drop bool EventID uint32 File string Offset int64 // sidmap SIDMap SIDMapItem // maxmind geo ip MM struct { Country string City string } // ip2asn ASN struct { Number int Country string CountryCode string Description string } // contains filtered or unexported fields }
func (*Record) AddExtraDataRecord ¶
func (r *Record) AddExtraDataRecord(e *unified2.ExtraDataRecord)
func (*Record) AddPacketRecord ¶
func (r *Record) AddPacketRecord(e *unified2.PacketRecord)
func (*Record) GetDestination ¶
func (*Record) GetPackets ¶
func (*Record) GetPriority ¶
func (*Record) GetProtocol ¶
func (*Record) SetEventRecord ¶
func (r *Record) SetEventRecord(e *unified2.EventRecord)
Click to show internal directories.
Click to hide internal directories.