Documentation ¶
Overview ¶
Package devmon contains the device monitor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RegisterLinkUpdates = func(d *DevMon) (chan netlink.LinkUpdate, error) { events := make(chan netlink.LinkUpdate) options := netlink.LinkSubscribeOptions{ ListExisting: true, } if err := netlink.LinkSubscribeWithOptions(events, d.upsDone, options); err != nil { return nil, fmt.Errorf("could not subscribe to link updates: %w", err) } return events, nil }
RegisterLinkUpdates registers for link update events.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.