mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
20 lines
468 B
Go
20 lines
468 B
Go
package dns
|
|
|
|
import (
|
|
"golang.zx2c4.com/wireguard/tun/netstack"
|
|
|
|
"github.com/netbirdio/netbird/client/iface/device"
|
|
"github.com/netbirdio/netbird/client/iface/wgaddr"
|
|
)
|
|
|
|
// WGIface defines subset methods of interface required for manager
|
|
type WGIface interface {
|
|
Name() string
|
|
Address() wgaddr.Address
|
|
IsUserspaceBind() bool
|
|
GetFilter() device.PacketFilter
|
|
GetDevice() *device.FilteredDevice
|
|
GetNet() *netstack.Net
|
|
GetInterfaceGUIDString() (string, error)
|
|
}
|