Documentation ¶
Overview ¶
Package bus provides a simplified (and more testable?) interface to DBus.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BusDaemonAddress = Address{ dbus.BUS_DAEMON_NAME, string(dbus.BUS_DAEMON_PATH), dbus.BUS_DAEMON_IFACE, }
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint interface { WatchSignal(member string, f func(...interface{}), d func()) error Call(member string, args ...interface{}) ([]interface{}, error) GetProperty(property string) (interface{}, error) Dial() error Close() String() string }
bus.Endpoint represents the DBus connection itself.
Directories ¶
Path | Synopsis |
---|---|
Package connectivity a single, simple stream of booleans to answer the quesiton “are we connected?”.
|
Package connectivity a single, simple stream of booleans to answer the quesiton “are we connected?”. |
Package networkmanager wraps a couple of NetworkManager's DBus API points: the org.freedesktop.NetworkManager.state call, and listening for the StateChange signal.
|
Package networkmanager wraps a couple of NetworkManager's DBus API points: the org.freedesktop.NetworkManager.state call, and listening for the StateChange signal. |
Package notifications wraps a couple of Notifications's DBus API points: the org.freedesktop.Notifications.Notify call, and listening for the ActionInvoked signal.
|
Package notifications wraps a couple of Notifications's DBus API points: the org.freedesktop.Notifications.Notify call, and listening for the ActionInvoked signal. |
Package bus/testing provides an implementation of bus.Bus and bus.Endpoint suitable for testing.
|
Package bus/testing provides an implementation of bus.Bus and bus.Endpoint suitable for testing. |
Package urldispatcher wraps the url dispatcher's dbus api point
|
Package urldispatcher wraps the url dispatcher's dbus api point |
Click to show internal directories.
Click to hide internal directories.