Documentation
¶
Overview ¶
Package urfkill wraps a couple of URfkill's DBus API points to watch for flight mode state changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BusAddress bus.Address = bus.Address{
Interface: "org.freedesktop.URfkill",
Path: "/org/freedesktop/URfkill",
Name: "org.freedesktop.URfkill",
}
URfkill lives on a well-knwon bus.Address
View Source
var WLANKillswitchBusAddress bus.Address = bus.Address{
Interface: "org.freedesktop.URfkill.Killswitch",
Path: "/org/freedesktop/URfkill/WLAN",
Name: "org.freedesktop.URfkill",
}
URfkill lives on a well-knwon bus.Address
Functions ¶
This section is empty.
Types ¶
type KillswitchState ¶
type KillswitchState int32
const ( KillswitchStateUnblocked KillswitchState = iota KillswitchStateSoftBlocked KillswitchStateHardBlocked KillswitchStateMax )
func (KillswitchState) IsValid ¶
func (ks KillswitchState) IsValid() bool
type URfkill ¶
type URfkill interface { // IsFlightMode returns flight mode state. IsFlightMode() bool // WatchFlightMode listens for changes to URfkill's flight // mode state, and sends them out over the channel returned. WatchFlightMode() (<-chan bool, bus.Cancellable, error) // GetWLANKillswitchState fetches and returns URfkill's // WLAN killswitch state. GetWLANKillswitchState() KillswitchState // WatchWLANKillswitchState listens for changes of URfkill's // WLAN killswtich state, and sends them out over the channel returned. WatchWLANKillswitchState() (<-chan KillswitchState, bus.Cancellable, error) }
Click to show internal directories.
Click to hide internal directories.