package netutil
import "github.com/coreos/etcd/pkg/netutil"
Package netutil implements network-related utility functions.
Index ¶
- func DropPort(port int) error
- func IsNetworkTimeoutError(err error) bool
- func RecoverPort(port int) error
- func RemoveLatency() error
- func SetLatency(ms, rv int) error
- func URLStringsEqual(a []string, b []string) bool
Functions ¶
func DropPort ¶
DropPort drops all tcp packets that are received from the given port and sent to the given port.
func IsNetworkTimeoutError ¶
func RecoverPort ¶
RecoverPort stops dropping tcp packets at given port.
func RemoveLatency ¶
func RemoveLatency() error
RemoveLatency resets latency configurations.
func SetLatency ¶
SetLatency adds latency in millisecond scale with random variations.
func URLStringsEqual ¶
Source Files ¶
- Version
- v3.0.9+incompatible
- Published
- Sep 15, 2016
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 22 minutes ago –
Tools for package owners.