mirror of
https://github.com/netbirdio/netbird.git
synced 2025-03-13 14:18:47 +01:00
23 lines
573 B
Go
23 lines
573 B
Go
package iface
|
|
|
|
import (
|
|
wgdevice "golang.zx2c4.com/wireguard/device"
|
|
|
|
"golang.zx2c4.com/wireguard/tun/netstack"
|
|
|
|
"github.com/netbirdio/netbird/client/iface/bind"
|
|
"github.com/netbirdio/netbird/client/iface/device"
|
|
)
|
|
|
|
type WGTunDevice interface {
|
|
Create(routes []string, dns string, searchDomains []string) (device.WGConfigurer, error)
|
|
Up() (*bind.UniversalUDPMuxDefault, error)
|
|
UpdateAddr(address WGAddress) error
|
|
WgAddress() WGAddress
|
|
DeviceName() string
|
|
Close() error
|
|
FilteredDevice() *device.FilteredDevice
|
|
Device() *wgdevice.Device
|
|
GetNet() *netstack.Net
|
|
}
|