network

package
v0.1.44 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCheckTrigger added in v0.1.37

func HandleCheckTrigger(networksToCheck []pkgnetwork.Network, connectionParams *ConnectionParams)

func HandleStatusUpdate added in v0.1.37

func HandleStatusUpdate(statusUpdate NetworkConnectionStatus, connectionParams *ConnectionParams)

func WatchConnections

func WatchConnections(
	networks []pkgnetwork.Network,
	updateInterval time.Duration,
	stop chan struct{},
) chan types.Notification

Types

type ConnectionParams added in v0.1.37

type ConnectionParams struct {
	Hostname             string
	NotificationsChannel chan types.Notification
	StatusChannel        chan NetworkConnectionStatus
	IsInitialRun         bool
}

type NetworkConnectionStatus added in v0.0.4

type NetworkConnectionStatus struct {
	Online  bool
	Network pkgnetwork.Network
}

Jump to

Keyboard shortcuts

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