From dce39b836a0fd6e37ab2499c2e0e232572c17ad6 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 6 Aug 2021 20:34:18 -0600 Subject: add redis process, put circus in charge of process management --- srv/mailinglist/mailer.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'srv/mailinglist/mailer.go') diff --git a/srv/mailinglist/mailer.go b/srv/mailinglist/mailer.go index 81d0b91..12fc398 100644 --- a/srv/mailinglist/mailer.go +++ b/srv/mailinglist/mailer.go @@ -10,6 +10,15 @@ type Mailer interface { Send(to, subject, body string) error } +// NullMailer acts as a Mailer but actually just does nothing. +var NullMailer = nullMailer{} + +type nullMailer struct{} + +func (nullMailer) Send(to, subject, body string) error { + return nil +} + // MailerParams are used to initialize a new Mailer instance type MailerParams struct { SMTPAddr string -- cgit v1.2.3