blob: c65afb6bb61e1be760654b12c93ca2f1380c7733 [file] [log] [blame]
// package netconfig implements a network configuration watcher.
// NOTE(p): This is also where we should put any code that changes
// network configuration.
package netconfig
// NetConfigWatcher sends on channel whenever an interface or interface address
// is added or deleted.
type NetConfigWatcher interface {
// Stop watching.
Stop()
// A channel that returns an item whenever the network addresses or
// interfaces have changed. It is up to the caller to reread the
// network configuration in such cases.
Channel() chan struct{}
}