Documentation ¶
Index ¶
Constants ¶
View Source
const (
MIME = "MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"
)
Variables ¶
This section is empty.
Functions ¶
func NewLoggerProvider ¶
func NewLoggerProvider(config *config.AppConfig) *zap.SugaredLogger
func NewServerProvider ¶
Types ¶
type DatabaseProvider ¶
func NewDatabaseProvider ¶
func NewDatabaseProvider(config *config.DatabaseConfig, log *zap.SugaredLogger) DatabaseProvider
type Mail ¶
func (*Mail) BuildMessage ¶
type MailProvider ¶
func NewMailProvider ¶
func NewMailProvider(config *config.MailConfig, log *zap.SugaredLogger, template TemplateProvider, smtpMail SMTPMailProvider) MailProvider
type SMTPMailProvider ¶
type SMTPMailProvider interface {
Send(smtpServer SmtpServer, mail Mail, password string) error
}
func NewSMTPMailProvider ¶
func NewSMTPMailProvider(log *zap.SugaredLogger) SMTPMailProvider
type SmtpServer ¶
func (*SmtpServer) ServerName ¶
func (s *SmtpServer) ServerName() string
type TemplateProvider ¶
func NewTemplateProvider ¶
func NewTemplateProvider(log *zap.SugaredLogger) TemplateProvider
Click to show internal directories.
Click to hide internal directories.