mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-28 11:35:40 +00:00
15 lines
394 B
Go
15 lines
394 B
Go
package config
|
|
|
|
type MailerConf struct {
|
|
Host string `conf:""`
|
|
Port int `conf:""`
|
|
Username string `conf:""`
|
|
Password string `conf:""`
|
|
From string `conf:"info@example.com"`
|
|
}
|
|
|
|
// Ready is a simple check to ensure that the configuration is not empty.
|
|
// or with it's default state.
|
|
func (mc *MailerConf) Ready() bool {
|
|
return mc.Host != "" && mc.Port != 0 && mc.From != ""
|
|
}
|