Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindToInterface ¶
func GetInterfacesFunc ¶
func GetInterfacesFunc(matcher InterfaceMatcher) ([]net.Interface, error)
GetInterfacesFunc loops through the available network interfaces, and returns a list of interfaces for which the passed InterfaceMatcher function returns true.
func GetLoopbackInterfaces ¶
GetLoopbackInterfaces returns a list of loopback interfaces.
func GetNonLoopbackInterfaces ¶
GetNonLoopbackInterfaces returns a list of non-loopback interfaces.
Types ¶
type InterfaceMatcher ¶
InterfaceMatcher is a function type used to match the interfaces we want. See GetInterfacesFunc below for usage.
Click to show internal directories.
Click to hide internal directories.