Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailSender ¶
type EmailSender interface { SendMail( subject string, content string, to []string, cc []string, bcc []string, attachFiles []string, ) error }
func NewSESSender ¶
func NewSESSender(region string, senderEmail string) EmailSender
NewSESSender initializes a new SESSender with optional credentials. If AccessKeyID and SecretKey are empty, the AWS SDK will use the default credentials chain.
func NewSendGridSender ¶
func NewSendGridSender(apiKey string, appName string, appEmail string) EmailSender
NewSendGridSender initializes a new SendGridSender.
type SMSSender ¶ added in v1.0.1
type SMSSender interface { SendSMS( message string, to []string, ) error SendBulkSMS( message string, to []string, ) error }
SMSSender interface defines methods for sending SMS messages
func NewSNSSender ¶ added in v1.0.1
NewSNSSender initializes a new SNSSender
type SNSSender ¶ added in v1.0.1
SNSSender implements the SMSSender interface for AWS SNS
func (*SNSSender) SendBulkSMS ¶ added in v1.0.1
SendBulkSMS sends SMS messages to multiple recipients using AWS SNS
type SendGridSender ¶
SendGridSender implements the EmailSender interface for SendGrid.
type TwilioSender ¶ added in v1.0.1
TwilioSender implements the SMSSender interface for Twilio
func (*TwilioSender) SendBulkSMS ¶ added in v1.0.1
func (t *TwilioSender) SendBulkSMS(message string, to []string) error
SendBulkSMS sends SMS messages to multiple recipients using Twilio