listener

package
v0.0.0-...-afcb601 Latest Latest
Warning

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

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

Documentation

Overview

Package listener implements a component that listens for SNMP messages, parses them, and publishes messages on a channel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	// Packets returns the channel to which the listener publishes traps packets.
	Packets() packet.PacketsChannel
}

Component is the component type.

type MockComponent

type MockComponent interface {
	Component
	Send(*packet.SnmpPacket)
}

MockComponent just holds a channel to which tests can write.

Directories

Path Synopsis
Package listenerimpl implements the Listener component.
Package listenerimpl implements the Listener component.

Jump to

Keyboard shortcuts

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