notifier

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 25 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

This section is empty.

Jump to

Keyboard shortcuts

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