netbird/iface/tun.go

19 lines
371 B
Go
Raw Permalink Normal View History

//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
}