networkmonitor

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkMonitor

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

NetworkMonitor watches for changes in network configuration.

func New

func New() *NetworkMonitor

New creates a new network monitor.

func (*NetworkMonitor) Listen

func (nw *NetworkMonitor) Listen(ctx context.Context) (err error)

Listen begins monitoring network changes. When a change is detected, this function will return without error.

func (*NetworkMonitor) Stop

func (nw *NetworkMonitor) Stop()

Stop stops the network monitor.

Jump to

Keyboard shortcuts

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