watch

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package watch turns changes in cux's state into push notifications. It polls the same on-disk snapshot the panel reads, diffs it against the previous poll, and fires the handful of events worth waking a phone for — the ones a person actually wants to know about while away from the keyboard.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(targets []notify.Notifier, interval time.Duration, lang func() string)

Run polls every interval and notifies via every target. It never fires on the first snapshot (that would announce state that predates the phone) and does nothing while no channel has a recipient. lang, when non-nil, returns the language code (tr/fr/de/it/en) the user picked in the panel, so notifications go out in that language.

Types

This section is empty.

Jump to

Keyboard shortcuts

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