net

package
v0.0.0-...-1598cba Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWiredConnection

func AddWiredConnection(config IPProxyConfig) error

AddWiredConnection adds a wired connection

func AddWirelessConnection

func AddWirelessConnection(ssid, password string) error

AddWirelessConnection adds a WiFi connection

Types

type IPProxyConfig

type IPProxyConfig struct {
	Manual bool
	Config gonetworkmanager.IpProxyConfig
}

IPProxyConfig contains data about the proxy configuration

type Stats

type Stats struct {
	Devices []gonetworkmanager.Device
	Status  string
}

Stats contains data about the memory avaible/used

func GetNetworkStats

func GetNetworkStats() (*Stats, error)

GetNetworkStats returns statistics about network

Jump to

Keyboard shortcuts

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