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) var _ Validator = (*MailConfig)(nil)
type MailConfig struct { type MailConfig struct {
Host string Host string `mapstructure:"host"`
Port int Port int `mapstructure:"port"`
SSL bool SSL bool `mapstructure:"ssl"`
AuthType string AuthType string `mapstructure:"auth_type"`
Username string Username string `mapstructure:"username"`
Password string Password string `mapstructure:"password"`
From string From string `mapstructure:"from"`
} }
func (m MailConfig) Validate() error { func (m MailConfig) Validate() error {