move mock mailer into email package

This commit is contained in:
dhax 2017-10-22 21:53:58 +02:00
parent 397e9c0842
commit 9f37579562
3 changed files with 14 additions and 15 deletions

View file

@ -1,13 +0,0 @@
package mock
import "github.com/dhax/go-base/email"
type Mailer struct {
LoginTokenFn func(name, email string, c email.ContentLoginToken) error
LoginTokenInvoked bool
}
func (s *Mailer) LoginToken(n, e string, c email.ContentLoginToken) error {
s.LoginTokenInvoked = true
return s.LoginTokenFn(n, e, c)
}