mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-21 01:50:28 +00:00
Initial commit
This commit is contained in:
commit
29f583e936
135 changed files with 18463 additions and 0 deletions
15
backend/internal/config/conf_mailer.go
Normal file
15
backend/internal/config/conf_mailer.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package config
|
||||
|
||||
type MailerConf struct {
|
||||
Host string `conf:""`
|
||||
Port int `conf:""`
|
||||
Username string `conf:""`
|
||||
Password string `conf:""`
|
||||
From string `conf:""`
|
||||
}
|
||||
|
||||
// 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.Username != "" && mc.Password != "" && mc.From != ""
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue