Documentation ¶
Index ¶
- Constants
- func EmailCallback(ctx context.Context, opts EmailCallbackOpts, ...) (uuid.UUID, string, string, domain_errors.DomainErr)
- func NewEMailVerification(ctx context.Context, mr mailRepo.MailVerificationRepository, ...) domain_errors.DomainErr
- func NewVerificationEmailBody(locale int, logo_path string) string
- type EmailCallbackOpts
- type NewEMailVerificationOpts
Constants ¶
View Source
const ( LocaleEN = iota LocaleRS = iota )
Variables ¶
This section is empty.
Functions ¶
func EmailCallback ¶
func EmailCallback( ctx context.Context, opts EmailCallbackOpts, mr mailRepo.MailVerificationRepository, ur userRepo.UsersRepository) (uuid.UUID, string, string, domain_errors.DomainErr)
E-mail callback used to finish registration and create an account
func NewEMailVerification ¶
func NewEMailVerification(ctx context.Context, mr mailRepo.MailVerificationRepository, smtpConfig config.SMTPConfig, opts NewEMailVerificationOpts) domain_errors.DomainErr
Sends varification mail to specified address
func NewVerificationEmailBody ¶
It just works :D Look, ma, amma HTML programmer
Yeah, I will refactor it using true html templates latter. TODO
Types ¶
type EmailCallbackOpts ¶
Click to show internal directories.
Click to hide internal directories.