packet

package
v0.0.0-...-5cde5c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL