package netutil

import "github.com/coreos/etcd/pkg/netutil"

Package netutil implements network-related utility functions.

Index

Functions

func DropPort

func DropPort(port int) error

func GetDefaultHost

func GetDefaultHost() (string, error)

GetDefaultHost fetches the a resolvable name that corresponds to the machine's default routable interface

func GetDefaultInterfaces

func GetDefaultInterfaces() (map[string]uint8, error)

GetDefaultInterfaces fetches the device name of default routable interface.

func IsNetworkTimeoutError

func IsNetworkTimeoutError(err error) bool

func RecoverPort

func RecoverPort(port int) error

func RemoveLatency

func RemoveLatency() error

func SetLatency

func SetLatency(ms, rv int) error

func URLStringsEqual

func URLStringsEqual(ctx context.Context, a []string, b []string) bool

Source Files

isolate_stub.go netutil.go routes.go

Version
v3.2.3+incompatible
Published
Jul 13, 2017
Platform
js/wasm
Imports
10 packages
Last checked
11 minutes ago

Tools for package owners.