bus

package
v0.0.0-...-b2761b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2014 License: GPL-3.0, GPL-3.0 Imports: 4 Imported by: 0

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 Address

type Address struct {
	Name      string
	Path      string
	Interface string
}

bus.Address is just a bag of configuration

type Bus

type Bus interface {
	String() string
	Endpoint(Address, logger.Logger) Endpoint
}

This is the Bus itself.

var (
	SessionBus Bus = concreteBus(dbus.SessionBus)
	SystemBus  Bus = concreteBus(dbus.SystemBus)
)

no bus.Bus constructor, just two standard, constant, busses

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL