Added mock mail client.

This commit is contained in:
mikestefanello 2021-12-14 11:29:45 -05:00
parent 869c507737
commit d0caa8119e
3 changed files with 48 additions and 0 deletions

View file

@ -31,6 +31,7 @@ type (
App AppConfig
Cache CacheConfig
Database DatabaseConfig
Mail MailConfig
}
// HTTPConfig stores HTTP configuration
@ -68,6 +69,14 @@ type (
Database string `env:"DB_NAME,default=app"`
TestDatabase string `env:"DB_NAME_TEST,default=app_test"`
}
MailConfig struct {
Hostname string `env:"MAIL_HOSTNAME,default=localhost"`
Port uint16 `env:"MAIL_PORT,default=25"`
User string `env:"MAIL_USER,default=admin"`
Password string `env:"MAIL_PASSWORD,default=admin"`
FromAddress string `env:"MAIL_FROM_ADDRESS,default=admin@localhost"`
}
)
// GetConfig loads and returns application configuration