netbird/iface/tun.go
2024-04-16 16:01:25 +02:00

20 lines
402 B
Go

//go:build !android
// +build !android
package iface
import (
"github.com/netbirdio/netbird/iface/bind"
)
type wgTunDevice interface {
Create() (wgConfigurer, error)
Up() (*bind.UniversalUDPMuxDefault, error)
UpdateAddr(address WGAddress) error
WgAddress() WGAddress
DeviceName() string
Close() error
Wrapper() *DeviceWrapper // todo eliminate this function
SetTurnConn(conn interface{})
}