notifications

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package notifications connects Prism to the shared Beacon notifications (pulse/pkg/notify): its channels and routing live in notify's store, and Prism's internal events are turned into the shared events here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheck added in v0.14.1

func HealthCheck(check func(ctx context.Context) health.Report) func(ctx context.Context) []notify.Problem

HealthCheck adapts Prism's health report for notify.HealthWatcher: one problem per subsystem (libraries, download clients, indexers).

func Setup added in v0.14.1

func Setup(ctx context.Context, d Deps) (*notify.Store, *notify.Outbox, error)

Setup opens the store, brings over channels set up before the shared notifications existed (once), and starts turning Prism's events into notifications. Run the returned outbox's Run in the background.

Types

type Deps added in v0.14.1

type Deps struct {
	DB  *sql.DB
	Q   db.Querier
	Bus *events.Bus
	// Hub returns Pulse when Prism is connected to it, nil otherwise.
	Hub func() notify.Hub
	Log *slog.Logger
}

Deps is what Setup needs from Prism.

Jump to

Keyboard shortcuts

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