Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMatchSignalStubArgs ¶
type AddMatchSignalStubArgs struct { Method string Member string Args []dbus.MatchOption }
type CallStubArgs ¶
type DbusConnection ¶
type DbusConnection struct {
IsObjectStubCalled bool
}
func NewDbusConnection ¶
func NewDbusConnection() *DbusConnection
func (*DbusConnection) Object ¶
func (mconn *DbusConnection) Object(dest string, path dbus.ObjectPath) dbus.BusObject
func (*DbusConnection) Signal ¶
func (mconn *DbusConnection) Signal(ch chan<- *dbus.Signal)
type DbusObject ¶
type DbusObject struct { IsCallStubCalled bool CallStubArgs CallStubArgs CallStubCallCount int CallStrobe chan bool ShouldCallStrobe bool IsAddMatchSignalCalled bool AddMatchSignalStubArgs AddMatchSignalStubArgs ExpectedBrightess int32 ShouldStore bool Mutex sync.Mutex }
func NewDbusObject ¶
func NewDbusObject(expectedBrightness int32, shouldStore bool, shouldCallStrobe bool) *DbusObject
func (*DbusObject) AddMatchSignal ¶
func (mobj *DbusObject) AddMatchSignal(method string, member string, args ...dbus.MatchOption) *dbus.Call
Click to show internal directories.
Click to hide internal directories.