fix: add missing mapstructure tags

This commit is contained in:
Derrick Hammer 2024-03-15 07:39:18 -04:00
parent 41f9947429
commit cafe863350
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 7 additions and 7 deletions

View File

@ -5,13 +5,13 @@ import "errors"
var _ Validator = (*MailConfig)(nil)
type MailConfig struct {
Host string
Port int
SSL bool
AuthType string
Username string
Password string
From string
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
SSL bool `mapstructure:"ssl"`
AuthType string `mapstructure:"auth_type"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
From string `mapstructure:"from"`
}
func (m MailConfig) Validate() error {