adormit

package
Version: v0.0.0-...-bdf0fe1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentAlarms map[string]Alarm
View Source
var CurrentAlarms map[string]Alarm
View Source
var CurrentTimers []Timer
View Source
var CurrentTimers []Timer

Functions

func DemoTimer

func DemoTimer()

func GetGnomeAlarms

func GetGnomeAlarms() []map[string]dbus.Variant

func Init

func Init()

func MakeAlarm

func MakeAlarm()

func Version

func Version() string

Types

type Alarm

type Alarm struct {
	Name   string
	Early  bool
	Time   time.Time
	Active bool
	Id     string
	Uuid   uuid.UUID
}

func (*Alarm) MakeId

func (alarm *Alarm) MakeId()

func (Alarm) SetAlarm

func (alarm Alarm) SetAlarm() string

func (Alarm) ToVariant

func (alarm Alarm) ToVariant() map[string]dbus.Variant

func (Alarm) UnsetAlarm

func (alarm Alarm) UnsetAlarm() error

type Timer

type Timer struct {
	Name     string
	Start    time.Time
	Duration time.Duration
	End      time.Time
	Uuid     uuid.UUID
	Command  string
	Args     []string
}

func (*Timer) Countdown

func (t *Timer) Countdown()

func (Timer) String

func (t Timer) String() string

Jump to

Keyboard shortcuts

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