Added mock mail client.
This commit is contained in:
parent
869c507737
commit
d0caa8119e
3 changed files with 48 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue