mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-25 09:33:24 +01:00
fd67892cb4
Refactor the flat code structure
19 lines
401 B
Go
19 lines
401 B
Go
//go:build !android
|
|
|
|
package iface
|
|
|
|
import (
|
|
"github.com/netbirdio/netbird/client/iface/bind"
|
|
"github.com/netbirdio/netbird/client/iface/device"
|
|
)
|
|
|
|
type WGTunDevice interface {
|
|
Create() (device.WGConfigurer, error)
|
|
Up() (*bind.UniversalUDPMuxDefault, error)
|
|
UpdateAddr(address WGAddress) error
|
|
WgAddress() WGAddress
|
|
DeviceName() string
|
|
Close() error
|
|
FilteredDevice() *device.FilteredDevice
|
|
}
|