network

package
v0.0.0-...-1a6a75a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterruptNetwork

func InterruptNetwork(duration time.Duration, ipv4s []string, ipv6s []string, ports ...string) flow.Runnable

InterruptNetwork uses operating system specific functionality to block network traffic on select IPs and ports.

func InterruptNetworkWithContext

func InterruptNetworkWithContext(ctx context.Context, duration time.Duration, ipv4s []string, ipv6s []string, ports ...string)

InterruptNetworkWithContext interrupts the network until a timeout or a context is canceled.

func WaitForAddresses

func WaitForAddresses(timeout time.Duration, addresses ...string) flow.Runnable

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL