test

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTrap

func FindTrap(trapsReceived []snmpgo.TrapRequest, variables map[string]string) bool

FindTrap search a trap matching the given variables

func LaunchTrapReceiver

func LaunchTrapReceiver(addr string) (*snmpgo.TrapServer, chan *snmpgo.TrapRequest, error)

LaunchTrapReceiver provides a SNMP server for testing purposes

func ReadTraps

func ReadTraps(trapChannel chan *snmpgo.TrapRequest) []snmpgo.TrapRequest

ReadTraps reads all available traps sent to server

Types

This section is empty.

Jump to

Keyboard shortcuts

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