Documentation ¶
Index ¶
- func GetTemplateData(translator *i18n.Translator, translateArgs map[string]interface{}, ...) templates.TemplateData
- type Notify
- func (notify Notify) SendDomainClaimed(user *query.NotifyUser, origin, username string) error
- func (notify Notify) SendEmailVerificationCode(user *query.NotifyUser, origin, code string) error
- func (notify Notify) SendPasswordCode(user *query.NotifyUser, origin, code string) error
- func (notify Notify) SendPasswordlessRegistrationLink(user *query.NotifyUser, origin, code, codeID string) error
- func (notify Notify) SendPhoneVerificationCode(user *query.NotifyUser, origin, code string) error
- func (notify Notify) SendUserInitCode(user *query.NotifyUser, origin, code string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplateData ¶
func GetTemplateData(translator *i18n.Translator, translateArgs map[string]interface{}, assetsPrefix, href, msgType, lang string, policy *query.LabelPolicy) templates.TemplateData
Types ¶
type Notify ¶
type Notify func( url string, args map[string]interface{}, messageType string, allowUnverifiedNotificationChannel bool, ) error
func SendEmail ¶
func SendEmail( ctx context.Context, mailhtml string, translator *i18n.Translator, user *query.NotifyUser, emailConfig func(ctx context.Context) (*smtp.EmailConfig, error), getFileSystemProvider func(ctx context.Context) (*fs.FSConfig, error), getLogProvider func(ctx context.Context) (*log.LogConfig, error), colors *query.LabelPolicy, assetsPrefix string, ) Notify
func SendSMSTwilio ¶
func SendSMSTwilio( ctx context.Context, translator *i18n.Translator, user *query.NotifyUser, twilioConfig func(ctx context.Context) (*twilio.TwilioConfig, error), getFileSystemProvider func(ctx context.Context) (*fs.FSConfig, error), getLogProvider func(ctx context.Context) (*log.LogConfig, error), colors *query.LabelPolicy, assetsPrefix string, ) Notify
func (Notify) SendDomainClaimed ¶
func (notify Notify) SendDomainClaimed(user *query.NotifyUser, origin, username string) error
func (Notify) SendEmailVerificationCode ¶
func (notify Notify) SendEmailVerificationCode(user *query.NotifyUser, origin, code string) error
func (Notify) SendPasswordCode ¶
func (notify Notify) SendPasswordCode(user *query.NotifyUser, origin, code string) error
func (Notify) SendPasswordlessRegistrationLink ¶
func (notify Notify) SendPasswordlessRegistrationLink(user *query.NotifyUser, origin, code, codeID string) error
func (Notify) SendPhoneVerificationCode ¶
func (notify Notify) SendPhoneVerificationCode(user *query.NotifyUser, origin, code string) error
func (Notify) SendUserInitCode ¶
func (notify Notify) SendUserInitCode(user *query.NotifyUser, origin, code string) error
Click to show internal directories.
Click to hide internal directories.