Discover Packages
github.com/centrual/cuxdeck
internal
notify
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jul 13, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package notify is the shared vocabulary for outbound alerts: a small
event and the interface every channel (Web Push, Telegram, …)
implements. Keeping it standalone lets the watcher fan one event out
to every enabled channel without any of them importing each other.
type Event struct {
Title string `json:"title"`
Body string `json:"body"`
Tag string `json:"tag"`
}
Event is one alert. Tag collapses repeats of the same kind on
channels that support it (Web Push).
type Notifier interface {
Notify(Event )
Has() bool
}
Notifier is one delivery channel. Has reports whether it has anyone
to deliver to, so the watcher can skip work when every channel is
empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.