Documentation
¶
Overview ¶
Package notifications connects Haul to the shared Beacon notifications (pulse/pkg/notify): finished and stalled downloads, and health.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
HealthCheck turns Haul's health report into problems for notify.HealthWatcher.
Types ¶
type Deps ¶
type Deps struct {
DB *sql.DB
Torrents Torrents
Bus *events.Bus
// Hub returns Pulse when Haul is connected to it, nil otherwise.
Hub func() notify.Hub
Log *slog.Logger
// Webhooks from config.yaml (the old way to get events out of Haul);
// brought over once as "Other app (URL)" channels.
Webhooks []config.WebhookConfig
}
Deps is what Setup needs from Haul.