notifier

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init initializes the notifier client, depending on the server deployment model either for communicating with a standalone notifier server or with the integrated one.

func SendICSMail

func SendICSMail(to, subject, text string, attachments ...mailing.Attachment)

SendICSMail sends an ics calendar invite via email through the relevant notification server

func SendNotificationsForEvent

func SendNotificationsForEvent(rlog log.Ext1FieldLogger, tx *sqlx.Tx, e pkg2.MTEvent) error

SendNotificationsForEvent sends all relevant notifications for an event through the relevant notification server, if there are any

func SendNotificationsForSubClass

func SendNotificationsForSubClass(
	rlog log.Ext1FieldLogger, tx *sqlx.Tx, mtID mtid.MTID,
	nc *api.NotificationClass, clientData *api.ClientMetaData, additionalData model.KeyValues,
	additionalCallbackCheck func() (bool, error),
) error

SendNotificationsForSubClass sends all relevant notifications for a Notification( sub)class through the relevant notification server, if there are any

func SendTemplateEmail

func SendTemplateEmail(to, subject string, preferHTML bool, template string, binding any)

SendTemplateEmail sends a templated email through the relevant notification server

Types

type TableRow added in v0.11.0

type TableRow struct {
	Key   string
	Value string
}

TableRow represents a key-value pair for table generation with stable ordering

Jump to

Keyboard shortcuts

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