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. |
Click to show internal directories.
Click to hide internal directories.