hydra-passwordless/internal/mail/mailer.go

20 lines
302 B
Go
Raw Normal View History

2020-04-08 08:56:42 +02:00
package mail
type Option struct {
Host string
Port int
User string
Password string
InsecureSkipVerify bool
}
type OptionFunc func(*Option)
type Mailer struct {
opt *Option
}
func NewMailer(funcs ...OptionFunc) *Mailer {
return &Mailer{}
}