Versions in this module Expand all Collapse all v1 v1.0.0 May 22, 2019 Changes in this version + const MIME + func NewLoggerProvider(config *config.AppConfig) *zap.SugaredLogger + func NewServerProvider(lifecycle fx.Lifecycle, appConfig *config.AppConfig, log *zap.SugaredLogger) *gin.Engine + type DatabaseProvider interface + Connect func() *gorm.DB + Migrate func() + func NewDatabaseProvider(config *config.DatabaseConfig, log *zap.SugaredLogger) DatabaseProvider + type Mail struct + Body string + From string + Subject string + To string + func (mail *Mail) BuildMessage() string + type MailProvider interface + Send func(mail mail.Mailable, to string) bool + func NewMailProvider(config *config.MailConfig, log *zap.SugaredLogger, template TemplateProvider, ...) MailProvider + type SMTPMailProvider interface + Send func(smtpServer SmtpServer, mail Mail, password string) error + func NewSMTPMailProvider(log *zap.SugaredLogger) SMTPMailProvider + type SmtpServer struct + Host string + Port string + func (s *SmtpServer) ServerName() string + type TemplateProvider interface + Parse func(templatePath string, context interface{}) (string, error) + func NewTemplateProvider(log *zap.SugaredLogger) TemplateProvider