Documentation ¶
Index ¶
- Variables
- type Wifi
- func (w *Wifi) Close() (err error)
- func (w *Wifi) DetectCountry() error
- func (w *Wifi) Mode() WifiMode
- func (w *Wifi) Networks() []WifiNetwork
- func (w *Wifi) StartAccessPoint(ssid, password string) error
- func (w *Wifi) StartStation(ssid, password string) error
- func (w *Wifi) StartWifiInterface() error
- func (w *Wifi) StopAccessPoint()
- func (w *Wifi) StopStation()
- func (w *Wifi) StopWifiInterface() error
- type WifiMode
- type WifiNetwork
Constants ¶
This section is empty.
Variables ¶
View Source
var WifiInterfaceNamePrefixes = []string{"wlan", "wlp"}
Functions ¶
This section is empty.
Types ¶
type Wifi ¶
type Wifi struct { EthIface string WifiIface string DHCPDLeaseFile string DHCPCDLeaseFile string DNSKeyFile string CaptivePortalURL string CountryCode string WriteHostResolvConf bool // contains filtered or unexported fields }
func (*Wifi) DetectCountry ¶
DetectCountry derives the wifi country based on near wifi networks.
func (*Wifi) Networks ¶
func (w *Wifi) Networks() []WifiNetwork
Networks returns the list of available wifi networks.
func (*Wifi) StartAccessPoint ¶
func (*Wifi) StartStation ¶
func (*Wifi) StartWifiInterface ¶
func (*Wifi) StopAccessPoint ¶
func (w *Wifi) StopAccessPoint()
func (*Wifi) StopStation ¶
func (w *Wifi) StopStation()
func (*Wifi) StopWifiInterface ¶
type WifiNetwork ¶
Click to show internal directories.
Click to hide internal directories.