notify

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: 0 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

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.

Jump to

Keyboard shortcuts

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