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 ¶
func IsRussianMobileNumber ¶ added in v0.9.15
IsRussianMobileNumber checks if a phone number is a russian mobile. phone numbers need to be passed in E.164 format (leading '+”).
Types ¶
type DevEmailService ¶
type DevEmailService struct{}
DevEmailService is the implementation of an EmailService suitable for use in local development environments
type DevMailService ¶ added in v0.9.15
type DevMailService struct{}
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 MailService ¶ added in v0.9.15
MailService represent services that can send letters
type SMSService ¶
SMSService defines an sms communication channel
type SMSServiceProxySeparateRussia ¶ added in v0.9.15
type SMSServiceProxySeparateRussia struct {
RussianSMSService SMSService
DefaultSMSService SMSService
}
SMSServiceProxySeparateRussia is an SMS communication channel that uses a separate provider for russian phone numbers
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 SmsAeroSMSService ¶ added in v0.9.15
SmsAeroSMSService is an SMS communication channel using smsaero
type TwilioSMSService ¶
TwilioSMSService is an SMS communication channel using Twilio