Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // The Service Set Identifier (SSID) is the name of the wireless network. // It can be contained in the beacons sent out by APs, or it can be ‘hidden’ so that clients // who wish to associate must first know the name of the network. Early security guidance was // to hide the SSID of your network, but modern networking tools can detect the SSID by simply // watching for legitimate client association, as SSIDs are transmitted in cleartext. SSID string // A pre-shared key (PSK). Key string // The wireless network encryption protocol (WEP, WPA, WPA2). Encryption EncryptionProtocol // Defines if the SSID is ‘hidden’. Hidden bool }
Config is the Wi-Fi network configuration parameters.
type EncryptionProtocol ¶ added in v0.3.0
type EncryptionProtocol int
EncryptionProtocol represents a WiFi encryption protocol.
const ( WPA2 EncryptionProtocol = iota WPA WEP NONE )
func NewEncryptionProtocol ¶ added in v0.3.0
func NewEncryptionProtocol(t string) (EncryptionProtocol, error)
NewEncryptionProtocol returns a new EncryptionProtocol from the specified string.
func (EncryptionProtocol) Code ¶ added in v0.3.0
func (ep EncryptionProtocol) Code() string
Code returns a string code for the EncryptionProtocol.
func (EncryptionProtocol) String ¶ added in v0.3.0
func (ep EncryptionProtocol) String() string
String returns the string representation of the EncryptionProtocol.
Click to show internal directories.
Click to hide internal directories.