common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BusPath            = "/org/codeberg/xaver/tom_timer"
	BusInterface       = "org.codeberg.xaver.tom_timer"
	MethodStartTimer   = BusInterface + ".StartTimer"
	MethodCancelTimer  = BusInterface + ".CancelTimer"
	MethodActiveTimers = BusInterface + ".ActiveTimers"
)
View Source
const IntrospectStr = `
<node>
	<interface name="` + BusInterface + `">
		<method name="StartTimer">
			<arg name="seconds" direction="in" type="u"/>
			<arg name="name" direction="in" type="s"/>
			<arg name="exec" direction="in" type="s"/>

			<arg name="timer_id" direction="out" type="t"/>
		</method>
		<method name="CancelTimer">
			<arg name="timer_id" direction="in" type="t"/>
		</method>

		<method name="ActiveTimers">
			<arg name="timers" direction="out" type="a(tsss)"/>
		</method>

	</interface>
	` + introspect.IntrospectDataString + `
</node>
`

Variables

This section is empty.

Functions

This section is empty.

Types

type TimerInfo

type TimerInfo struct {
	Id         uint64 `json:"id"`
	Name       string `json:"name"`
	Exec       string `json:"exec"`
	Timeout    string `json:"timeout"`
	ExpireTime string `json:"expireTime"`
}

Jump to

Keyboard shortcuts

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