Documentation
¶
Overview ¶
Package communication contains the implementation for communication channels that itsyou.online can use to communicate with users.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevEmailService ¶
type DevEmailService struct{}
DevEmailService is the implementation of an EmailService suitable for use in local development environments
type DevSMSService ¶
type DevSMSService struct { }
DevSMSService is a fake sms service that just logs the sms that should be send
type EmailService ¶
type EmailService interface {
Send(recipients []string, subject string, message string) (err error)
}
EmailService defines an email communication channel
type SMSService ¶
SMSService defines an sms communication channel
type SMTPEmailService ¶
type SMTPEmailService struct {
// contains filtered or unexported fields
}
SMTPEmailService implements an email service using plain old SMTP
func NewSMTPEmailService ¶
func NewSMTPEmailService(host string, port int, user string, password string) (service *SMTPEmailService)
NewSMTPEmailService creates a nes SMTPEmailService
type TwilioSMSService ¶
TwilioSMSService is an SMS communication channel using Twilio
Click to show internal directories.
Click to hide internal directories.