move mock mailer into email package
This commit is contained in:
parent
397e9c0842
commit
9f37579562
3 changed files with 14 additions and 15 deletions
|
|
@ -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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue