mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-27 04:36:37 +00:00
24 lines
389 B
Go
24 lines
389 B
Go
//go:build ios || tvos || android
|
|
|
|
package networkmonitor
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
)
|
|
|
|
type NetworkMonitor struct {
|
|
}
|
|
|
|
// New creates a new network monitor.
|
|
func New() *NetworkMonitor {
|
|
return &NetworkMonitor{}
|
|
}
|
|
|
|
func (nw *NetworkMonitor) Listen(_ context.Context) error {
|
|
return fmt.Errorf("network monitor not supported on mobile platforms")
|
|
}
|
|
|
|
func (nw *NetworkMonitor) Stop() {
|
|
}
|