Documentation ¶
Index ¶
- func Init()
- func SendICSMail(to, subject, text string, attachments ...mailing.Attachment)
- func SendNotificationsForEvent(rlog log.Ext1FieldLogger, tx *sqlx.Tx, e pkg2.MTEvent) error
- func SendNotificationsForSubClass(rlog log.Ext1FieldLogger, tx *sqlx.Tx, mtID mtid.MTID, ...) error
- func SendTemplateEmail(to, subject string, preferHTML bool, template string, binding any)
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 ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.