networkmonitor

package
v0.0.0-...-44d27a1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RECEIVENORMAL = NetworkConditionType(1)
	RECEIVELOSS   = NetworkConditionType(2)
	SENDERNORMAL  = NetworkConditionType(3)
	SENDERLOSS    = NetworkConditionType(4)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkConditionType

type NetworkConditionType uint8

type NetworkMonitor

type NetworkMonitor struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, interval time.Duration, consecutiveConditionToChangeState uint8) *NetworkMonitor

Jump to

Keyboard shortcuts

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