fix: add missing mapstructure tags
This commit is contained in:
parent
41f9947429
commit
cafe863350
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue