Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRouteInterface ¶
Types ¶
type DefaultRouteDetails ¶
type DefaultRouteDetails struct { // InterfaceName is the interface name. It must always be populated. // It's like "eth0" (Linux), "Ethernet 2" (Windows), "en0" (macOS). InterfaceName string // InterfaceDesc is populated on Windows at least. It's a // longer description, like "Red Hat VirtIO Ethernet Adapter". InterfaceDesc string // InterfaceIndex is like net.Interface.Index. // Zero means not populated. InterfaceIndex int }
func DefaultRoute ¶
func DefaultRoute() (DefaultRouteDetails, error)
type StreamType ¶ added in v0.6.1
type StreamType string
const ( TCP StreamType = "tcp" UDP StreamType = "udp" )
Click to show internal directories.
Click to hide internal directories.