Documentation
¶
Index ¶
- type ConfirmationMailCall
- type EmailChangeMailCall
- type EmailChangedMailCall
- type GetEmailActionLinkCall
- type IdentityLinkedMailCall
- type IdentityUnlinkedMailCall
- type InviteMailCall
- type MFAFactorEnrolledMailCall
- type MFAFactorUnenrolledMailCall
- type MagicLinkMailCall
- type MockMailer
- func (m *MockMailer) ConfirmationMail(r *http.Request, user *models.User, otp, referrerURL string, ...) error
- func (m *MockMailer) EmailChangeMail(r *http.Request, user *models.User, otpNew, otpCurrent, referrerURL string, ...) error
- func (m *MockMailer) EmailChangedNotificationMail(r *http.Request, user *models.User, oldEmail string) error
- func (m *MockMailer) GetEmailActionLink(user *models.User, actionType, referrerURL string, externalURL *url.URL) (string, error)
- func (m *MockMailer) IdentityLinkedNotificationMail(r *http.Request, user *models.User, provider string) error
- func (m *MockMailer) IdentityUnlinkedNotificationMail(r *http.Request, user *models.User, provider string) error
- func (m *MockMailer) InviteMail(r *http.Request, user *models.User, otp, referrerURL string, ...) error
- func (m *MockMailer) MFAFactorEnrolledNotificationMail(r *http.Request, user *models.User, factorType string) error
- func (m *MockMailer) MFAFactorUnenrolledNotificationMail(r *http.Request, user *models.User, factorType string) error
- func (m *MockMailer) MagicLinkMail(r *http.Request, user *models.User, otp, referrerURL string, ...) error
- func (m *MockMailer) PasswordChangedNotificationMail(r *http.Request, user *models.User) error
- func (m *MockMailer) PhoneChangedNotificationMail(r *http.Request, user *models.User, oldPhone string) error
- func (m *MockMailer) ReauthenticateMail(r *http.Request, user *models.User, otp string) error
- func (m *MockMailer) RecoveryMail(r *http.Request, user *models.User, otp, referrerURL string, ...) error
- func (m *MockMailer) Reset()
- type PasswordChangedMailCall
- type PhoneChangedMailCall
- type ReauthenticateMailCall
- type RecoveryMailCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfirmationMailCall ¶
type EmailChangeMailCall ¶
type EmailChangedMailCall ¶
type GetEmailActionLinkCall ¶
type IdentityLinkedMailCall ¶
type InviteMailCall ¶
type MagicLinkMailCall ¶
type MockMailer ¶
type MockMailer struct {
InviteMailCalls []InviteMailCall
ConfirmationMailCalls []ConfirmationMailCall
RecoveryMailCalls []RecoveryMailCall
MagicLinkMailCalls []MagicLinkMailCall
EmailChangeMailCalls []EmailChangeMailCall
ReauthenticateMailCalls []ReauthenticateMailCall
GetEmailActionLinkCalls []GetEmailActionLinkCall
PasswordChangedMailCalls []PasswordChangedMailCall
EmailChangedMailCalls []EmailChangedMailCall
PhoneChangedMailCalls []PhoneChangedMailCall
IdentityLinkedMailCalls []IdentityLinkedMailCall
IdentityUnlinkedMailCalls []IdentityUnlinkedMailCall
MFAFactorEnrolledMailCalls []MFAFactorEnrolledMailCall
MFAFactorUnenrolledMailCalls []MFAFactorUnenrolledMailCall
}
MockMailer implements the mailer.Mailer interface for testing
func (*MockMailer) ConfirmationMail ¶
func (*MockMailer) EmailChangeMail ¶
func (*MockMailer) EmailChangedNotificationMail ¶
func (*MockMailer) GetEmailActionLink ¶
func (*MockMailer) IdentityLinkedNotificationMail ¶
func (*MockMailer) IdentityUnlinkedNotificationMail ¶
func (*MockMailer) InviteMail ¶
func (*MockMailer) MFAFactorEnrolledNotificationMail ¶
func (*MockMailer) MFAFactorUnenrolledNotificationMail ¶
func (*MockMailer) MagicLinkMail ¶
func (*MockMailer) PasswordChangedNotificationMail ¶
func (*MockMailer) PhoneChangedNotificationMail ¶
func (*MockMailer) ReauthenticateMail ¶
func (*MockMailer) RecoveryMail ¶
func (*MockMailer) Reset ¶
func (m *MockMailer) Reset()
type PasswordChangedMailCall ¶
type PhoneChangedMailCall ¶
type ReauthenticateMailCall ¶
Click to show internal directories.
Click to hide internal directories.