Versions in this module Expand all Collapse all v0 v0.14.2 Feb 26, 2024 v0.14.1 Feb 25, 2024 Changes in this version + type Data struct + Code string + Email string + func (d *Data) IsValidEmailMask() bool + type Email struct + func NewEmailProvider(provider *secure.Provider, service Service, ttl, len int) *Email + func (p *Email) GetName() string + func (p *Email) GetRouter(r chi.Router) + type HTMLEmailService struct + func NewHTMLEmailService(smtp *tools.SMTP, ...) *HTMLEmailService + func (es *HTMLEmailService) SendVerificationCode(email string, code string) error + type PlainEmailService struct + func NewPlainEmailService(smtp *tools.SMTP, ...) *PlainEmailService + func (es *PlainEmailService) SendVerificationCode(email string, code string) error + type Service interface + SendVerificationCode func(phone string, code string) error