Documentation ¶
Index ¶
- func CheckTcp4Port(port int) (bool, error)
- func GetDefaultGWv4() (string, error)
- func GetDefaultGWv6() (string, error)
- func GetGW(iface string, family int) (string, error)
- func GetGWv4(iface string) (string, error)
- func GetGWv6(iface string) (string, error)
- func GetIPs(ifaceWanted string, familyWanted int) ([]string, error)
- func GetIPsv4(iface string) ([]string, error)
- func GetIPsv6(iface string) ([]string, error)
- func GetIfaceCount() (int, error)
- func GetNextFreePort4() (int, error)
- func GetNonLoIfaceIPv4() (string, error)
- func GetNonLoIfaceWithAddrs(ipFamily int) (iface net.Interface, addrs []string, err error)
- func HttpGet(addr string) (string, error)
- func HttpServe(addr string, timeout int) error
- type GoroutineAssistant
- func (a *GoroutineAssistant) Add(n int)
- func (a *GoroutineAssistant) Done()
- func (a *GoroutineAssistant) Fatalf(s string, args ...interface{})
- func (a *GoroutineAssistant) SpawnOrFail(cmd string) *gexpect.ExpectSubprocess
- func (a *GoroutineAssistant) Wait()
- func (a *GoroutineAssistant) WaitOrFail(child *gexpect.ExpectSubprocess)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTcp4Port ¶
func GetDefaultGWv4 ¶
func GetDefaultGWv6 ¶
func GetIfaceCount ¶ added in v0.10.0
func GetNextFreePort4 ¶
func GetNonLoIfaceIPv4 ¶
func GetNonLoIfaceWithAddrs ¶
Types ¶
type GoroutineAssistant ¶
type GoroutineAssistant struct {
// contains filtered or unexported fields
}
func NewGoroutineAssistant ¶
func NewGoroutineAssistant(t *testing.T) *GoroutineAssistant
func (*GoroutineAssistant) Add ¶
func (a *GoroutineAssistant) Add(n int)
func (*GoroutineAssistant) Done ¶
func (a *GoroutineAssistant) Done()
func (*GoroutineAssistant) Fatalf ¶
func (a *GoroutineAssistant) Fatalf(s string, args ...interface{})
func (*GoroutineAssistant) SpawnOrFail ¶ added in v0.10.0
func (a *GoroutineAssistant) SpawnOrFail(cmd string) *gexpect.ExpectSubprocess
func (*GoroutineAssistant) Wait ¶
func (a *GoroutineAssistant) Wait()
func (*GoroutineAssistant) WaitOrFail ¶ added in v0.10.0
func (a *GoroutineAssistant) WaitOrFail(child *gexpect.ExpectSubprocess)
Click to show internal directories.
Click to hide internal directories.