backend

package
v0.0.0-...-253cea0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package backend implements the ... backend of the application, the part that deals with the database and dbus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	Queue chan *objects.Reminder
	// contains filtered or unexported fields
}

Daemon is the centerpiece of the backend, coordinating between the database, the clients, etc.

func Summon

func Summon(addr string) (*Daemon, error)

Summon summons a Daemon and returns it. No sacrifice or idolatry is required.

func (*Daemon) Banish

func (d *Daemon) Banish() error

Banish clears the Daemon's active flag, telling components to shut down.

func (*Daemon) IsAlive

func (d *Daemon) IsAlive() bool

IsAlive returns true if the Daemon's active flag is set.

Jump to

Keyboard shortcuts

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