upower

package
v0.0.0-...-5b74cc3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: GPL-2.0 Imports: 2 Imported by: 0

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 CallStubArgs struct {
	Method string
	Flags  dbus.Flags
	Args   []interface{}
}

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

func (*DbusObject) Call

func (mobj *DbusObject) Call(method string, flags dbus.Flags, args ...interface{}) *dbus.Call

Jump to

Keyboard shortcuts

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