Documentation ¶
Index ¶
Constants ¶
View Source
const (
RouteProto = 157
)
Variables ¶
View Source
var ErrNotWireguard = errors.New("named link is not a wireguard tunnel")
Functions ¶
This section is empty.
Types ¶
type AddrScope ¶
type AddrScope int
const ( ScopeGlobal AddrScope = unix.RT_SCOPE_UNIVERSE ScopeLink AddrScope = unix.RT_SCOPE_LINK )
type Link ¶
type Link interface { Interface() net.Interface Name() string Index() int IsUp() bool SetUp(bool) error Addrs() ([]Address, error) DelAddr(a Address) error AddAddr(a Address) error ConfigureWG(wgtypes.Config) error WGConfig() (*wgtypes.Device, error) DialUDP(local, remote net.UDPAddr) (*net.UDPConn, error) ListenUDP(local net.UDPAddr) (*net.UDPConn, error) GetRoutes() ([]Route, error) AddRoute(Route) error DelRoute(Route) error }
Click to show internal directories.
Click to hide internal directories.