Documentation ¶
Overview ¶
Package netutil implements network-related utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DropPort ¶ added in v2.1.0
DropPort drops all tcp packets that are received from the given port and sent to the given port.
func RecoverPort ¶ added in v2.1.0
RecoverPort stops dropping tcp packets at given port.
func RemoveLatency ¶ added in v2.3.0
func RemoveLatency() error
RemoveLatency resets latency configurations.
func SetLatency ¶ added in v2.3.0
SetLatency adds latency in millisecond scale with random variations.
func URLStringsEqual ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.