notifyapi

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 8 Imported by: ? 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 notifyapi is the notifications settings API, the same in every Beacon app: channels, test sends, routing and the recent list. Pulse also accepts events from the apps here.

Index

Constants

This section is empty.

Variables

View Source
var Apps = []appInfo{{"pilot", "Pilot"}, {"prism", "Prism"}, {"haul", "Haul"}, {"pulse", "Pulse"}}

Apps are the Beacon apps a Pulse channel can be limited to.

Functions

func Register

func Register(api huma.API, o Options)

Register adds the notifications API to api.

Types

type Options

type Options struct {
	App    string // display name: "Pilot", "Pulse"
	Store  *notify.Store
	Outbox *notify.Outbox
	// Hub is true for Pulse: it receives events from apps and its channels
	// can be limited to some apps.
	Hub bool
}

Options wires the API to an app.

Jump to

Keyboard shortcuts

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