diff --git a/config/mail.go b/config/mail.go index 35dd845..87fa8a0 100644 --- a/config/mail.go +++ b/config/mail.go @@ -1,8 +1,11 @@ package config -import "errors" +import ( + "errors" +) var _ Validator = (*MailConfig)(nil) +var _ Defaults = (*MailConfig)(nil) type MailConfig struct { Host string `mapstructure:"host"` @@ -29,3 +32,8 @@ func (m MailConfig) Validate() error { } return nil } +func (c MailConfig) Defaults() map[string]interface{} { + return map[string]interface{}{ + "auth_type": "plain", + } +}