hydra-passwordless/internal/mail/provider.go

12 lines
233 B
Go
Raw Normal View History

2020-04-08 08:56:42 +02:00
package mail
import "gitlab.com/wpetit/goweb/service"
func ServiceProvider(opts ...OptionFunc) service.Provider {
mailer := NewMailer(opts...)
return func(ctn *service.Container) (interface{}, error) {
return mailer, nil
}
}