types

package
v0.0.0-...-860e413 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL