Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Informer ¶
type Informer interface {
// Subscribe returns a channel that sends Event instances.
Subscribe(ctx context.Context) (<-chan Event, error)
}
Informer provides notifications about each network interface that is added or removed from the host. Production implementations: Poller and Watcher.
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
Poller periodically looks for the network interfaces in the system and forwards Event notifications when interfaces are added or deleted.
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher uses system's netlink to get real-time information events about network interfaces' addition or removal.
func NewWatcher ¶
Click to show internal directories.
Click to hide internal directories.