Documentation ¶
Index ¶
Constants ¶
View Source
const ( // https://developer.gnome.org/NetworkManager/stable/nm-dbus-types.html#NMMetered NetworkManagerMeteredUnknown = 0 NetworkManagerMeteredYes = 1 NetworkManagerMeteredNo = 2 NetworkManagerMeteredGuessYes = 3 NetworkManagerMeteredGuessNo = 4 )
Variables ¶
This section is empty.
Functions ¶
func ActivationListeners ¶
ActivationListeners builds a map of addresses to listeners that were passed during systemd activation
func GetListener ¶
GetListener tries to get a listener for the given socket path from the listener map, and if it fails it tries to set it up directly.
func IsOnMeteredConnection ¶
IsOnMeteredConnection checks whether the current default network connection is metered. If the state can not be determined, returns false and an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.