Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client consumes lldp messages.
func (*Client) CatchPackages ¶
func (l *Client) CatchPackages(frameFragmentChannel chan<- FrameFragment)
CatchPackages searches on the configured interface for LLDP packages and pushes the optional TLV SysName and SysDescription fields of each found LLDP package into the given channel.
func (*Client) ExtractPhoneHomeMessage ¶
func (l *Client) ExtractPhoneHomeMessage(frameFragment *FrameFragment) *PhoneHomeMessage
ExtractPhoneHomeMessage extracts the machineID and payload of the given LLDP frame fragment. An error will be returned if the frame fragment does not contain a phone-home message.
type FrameFragment ¶
FrameFragment holds optional TLV SysName and SysDescription fields of a real LLDP frame.
type PhoneHomeMessage ¶
PhoneHomeMessage contains a phone-home message.
Click to show internal directories.
Click to hide internal directories.