Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMetered ¶
func IsMetered() bool
Quirks: Does not preserve errors (see IsMeteredFull(), returns false apon error) Only works on systemd based machines running network manager (PRs welcome) - On systemd, it checks ALL current interfaces if they're metered and returns true if any are
func IsMeteredFull ¶
IsMeteredFull takes the same input as IsMetered(), however, it returns errors, so if you don't want to use the function inline and/or want to troubleshoot, use this.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.