# Functions
NewAdminNotificationManager returns an EmailManager channel for callers to send Notifications on.
NewEmail returns an *email that can be used to send a message using SendMessage().
NewPushError returns a *pushError that can be populated and then sent through an EmailManager.
NewServiceEmailManager returns an EmailManager channel for callers to send Notifications on.
NewSetupError returns a *setupError that can be populated and then sent through an EmailManager.
NewSlackMessage returns a configured *slackMessage that can be used to send a message using SendMessage().
PrepareTableStringFromMap formats a map[string]string and appends a message onto the beginning.
SendAdminNotifications sends admin messages via email and Slack that have been collected in adminErrors.
SendMessage sends a message (msg).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
AdminDataFinal stores the same information as adminData, but with the PushErrors converted to string form, as a table.
AdminNotificationManager holds information needed to receive and handle notifications meant to be sent to the administrators of the managed tokens utilities.
SendMessageError indicates that an error occurred sending a message.
ServiceEmailManager contains all the information needed to receive Notifications for services and ensure they get sent in the correct email.
SourceNotification is a type containing a Notification.
# Interfaces
Notification is an interface to various types of notifications sent by a caller to.
SendMessager wraps the SendMessage method.
# Type aliases
AdminNotificationManagerOption is a functional option that should be used as an argument to NewAdminNotificationManager to set various fields of the AdminNotificationManager For example:
f := func(a *AdminNotificationManager) error { a.NotificationMinimum = 42 return nil } g := func(a *AdminNotificationManager) error { a.DatabaseReadOnly = false return nil } manager := NewAdminNotificationManager(context.Background(), f, g).
ServiceEmailManagerOption is a functional option that should be used as an argument to NewServiceEmailManager to set various fields of the ServiceEmailManager For example:
var wg sync.WaitGroup
f := func(a *ServiceEmailManager) error { a.NotificationMinimum = 42 return nil }
manager := NewServiceEmailManager(context.Background(), &wg, e, f).