Versions in this module Expand all Collapse all v1 v1.0.5 Nov 22, 2023 Changes in this version + const TAP + const TUN + type Config struct + DeviceType DeviceType + type DevicePermissions struct — linux/amd64 + Group uint + Owner uint + type DeviceType int + type Interface struct + func New(config Config) (ifce *Interface, err error) + func NewInterface(name string, file io.ReadWriteCloser, isTAP bool) *Interface + func NewTAP(ifName string) (ifce *Interface, err error) + func NewTUN(ifName string) (ifce *Interface, err error) + func (ifce *Interface) IsTAP() bool + func (ifce *Interface) IsTUN() bool + func (ifce *Interface) Name() string + func (ifce *Interface) SetTunNetwork(network string) error + type MacOSDriverProvider int — darwin/amd64 + const MacOSDriverSystem + const MacOSDriverTunTapOSX + type PlatformSpecificParams struct — darwin/amd64, linux/amd64, windows/amd64 + ComponentID string + Driver MacOSDriverProvider + InterfaceName string + MultiQueue bool + Name string + Network string + Permissions *DevicePermissions + Persist bool + type PlatformSpecificParams struct — js/wasm