mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-03 05:24:56 +01:00
fd67892cb4
Refactor the flat code structure
19 lines
504 B
Go
19 lines
504 B
Go
package dns
|
|
|
|
import (
|
|
"github.com/netbirdio/netbird/client/iface"
|
|
"github.com/netbirdio/netbird/client/iface/configurer"
|
|
"github.com/netbirdio/netbird/client/iface/device"
|
|
)
|
|
|
|
// WGIface defines subset methods of interface required for manager
|
|
type WGIface interface {
|
|
Name() string
|
|
Address() iface.WGAddress
|
|
IsUserspaceBind() bool
|
|
GetFilter() device.PacketFilter
|
|
GetDevice() *device.FilteredDevice
|
|
GetStats(peerKey string) (configurer.WGStats, error)
|
|
GetInterfaceGUIDString() (string, error)
|
|
}
|