Documentation ¶
Index ¶
- Variables
- func ConfigureLogger(level logrus.Level, prod bool)
- func GenerateErrorMail(errs []error, msg string, service string) hermes.Email
- func GeneratePasswordResetMail(url string) hermes.Email
- func GenerateResolvedNotificationMail(service string) hermes.Email
- func InitMailer(smtpServer, smtpUser, smtpPassword, from string, smtpPort int)
- func IsInitialized() bool
- func Send(to string, subject string, mail hermes.Email)
- type Mailer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Log = logrus.New()
)
Functions ¶
func ConfigureLogger ¶
ConfigureLogger toggles debugging and adds full timestamps in production mode
func GenerateErrorMail ¶
func GeneratePasswordResetMail ¶
func GeneratePasswordResetMail(url string) hermes.Email
func GenerateResolvedNotificationMail ¶
func GenerateResolvedNotificationMail(service string) hermes.Email
func InitMailer ¶
InitMailer returns a new mailer instance
func IsInitialized ¶
func IsInitialized() bool
Types ¶
Click to show internal directories.
Click to hide internal directories.