Documentation ¶
Overview ¶
Package packet defines an SNMP packet type and related helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PacketsChannel ¶
type PacketsChannel = chan *SnmpPacket
PacketsChannel is the type of channels of trap packets.
type SnmpPacket ¶
type SnmpPacket struct { Content *gosnmp.SnmpPacket Addr *net.UDPAddr Namespace string Timestamp int64 }
SnmpPacket is the type of packets yielded by server listeners.
func (*SnmpPacket) GetTags ¶
func (p *SnmpPacket) GetTags() []string
GetTags returns a list of tags associated to an SNMP trap packet.
Click to show internal directories.
Click to hide internal directories.