mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-04 22:10:56 +01:00
16 lines
265 B
Go
16 lines
265 B
Go
package networkmonitor
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// NetworkWatcher watches for changes in network configuration.
|
|
type NetworkWatcher struct {
|
|
cancel context.CancelFunc
|
|
}
|
|
|
|
// New creates a new network monitor.
|
|
func New() *NetworkWatcher {
|
|
return &NetworkWatcher{}
|
|
}
|