internet

package
v0.0.0-...-2a859bb Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// channel.go @ simulateAustralianInternet
	CanFail = true
	// 500ms ~ 3s
	MinLatency = 500
	MaxLatency = 3000
)
View Source
var ErrTimedOut = errors.New("Australian Internet unsupported.")

ErrTimedOut is returned when the simulated IO decides to fail.

Functions

func SimulateAustralian

func SimulateAustralian() error

SimulateAustralian simulates network latency with errors.

func SimulateAustralianCtx

func SimulateAustralianCtx(ctx context.Context) (err error)

SimulateAustralianCtx simulates network latency with errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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