package netutil
import "github.com/coreos/etcd/pkg/netutil"
Package netutil implements network-related utility functions.
Index ¶
- func DropPort(port int) error
- func GetDefaultHost() (string, error)
- func GetDefaultInterfaces() (map[string]uint8, error)
- func IsNetworkTimeoutError(err error) bool
- func RecoverPort(port int) error
- func RemoveLatency() error
- func SetLatency(ms, rv int) error
- func URLStringsEqual(ctx context.Context, a []string, b []string) bool
Functions ¶
func DropPort ¶
func GetDefaultHost ¶
GetDefaultHost fetches the a resolvable name that corresponds to the machine's default routable interface
func GetDefaultInterfaces ¶
GetDefaultInterfaces fetches the device name of default routable interface.
func IsNetworkTimeoutError ¶
func RecoverPort ¶
func RemoveLatency ¶
func RemoveLatency() error
func SetLatency ¶
func URLStringsEqual ¶
Source Files ¶
isolate_stub.go netutil.go routes.go
- Version
- v3.2.6+incompatible
- Published
- Aug 21, 2017
- Platform
- darwin/amd64
- Imports
- 10 packages
- Last checked
- 57 minutes ago –
Tools for package owners.