Documentation ¶
Index ¶
- type EmailCheckerMock
- type EmailSenderMock
- func (esm *EmailSenderMock) CheckEmail(t *testing.T, email string)
- func (esm *EmailSenderMock) CheckEmail2(t *testing.T, email0, email1 string)
- func (esm *EmailSenderMock) Clear()
- func (esm *EmailSenderMock) SendAdmReceived(address, toShowName string)
- func (esm *EmailSenderMock) SendAdmSent(address, toShowName string)
- func (esm *EmailSenderMock) SendCommentComplain(from, against, content, comment string, commentID, entryID int64)
- func (esm *EmailSenderMock) SendEmailChanged(address, name string)
- func (esm *EmailSenderMock) SendEntryComplain(from, against, content, entry string, entryID int64)
- func (esm *EmailSenderMock) SendEntryMoved(address, toShowName, entryTitle string, entryID int64)
- func (esm *EmailSenderMock) SendGreeting(address, name, code string)
- func (esm *EmailSenderMock) SendInvited(address, fromShowName, fromGender, toShowName string)
- func (esm *EmailSenderMock) SendNewAccept(address, fromName, fromShowName, fromGender, toShowName string)
- func (esm *EmailSenderMock) SendNewComment(address, fromGender, toShowName, entryTitle string, cmt *models.Comment)
- func (esm *EmailSenderMock) SendNewFollower(address, fromName, fromShowName, fromGender string, toPrivate bool, ...)
- func (esm *EmailSenderMock) SendNewInvite(address, name string)
- func (esm *EmailSenderMock) SendPasswordChanged(address, name string)
- func (esm *EmailSenderMock) SendResetPassword(address, name, gender, code string, date int64)
- func (esm *EmailSenderMock) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailCheckerMock ¶
type EmailCheckerMock struct {
Trusted []string
}
func (EmailCheckerMock) IsAllowed ¶
func (ecm EmailCheckerMock) IsAllowed(email string) bool
type EmailSenderMock ¶
func (*EmailSenderMock) CheckEmail ¶
func (esm *EmailSenderMock) CheckEmail(t *testing.T, email string)
func (*EmailSenderMock) CheckEmail2 ¶
func (esm *EmailSenderMock) CheckEmail2(t *testing.T, email0, email1 string)
func (*EmailSenderMock) Clear ¶
func (esm *EmailSenderMock) Clear()
func (*EmailSenderMock) SendAdmReceived ¶
func (esm *EmailSenderMock) SendAdmReceived(address, toShowName string)
func (*EmailSenderMock) SendAdmSent ¶
func (esm *EmailSenderMock) SendAdmSent(address, toShowName string)
func (*EmailSenderMock) SendCommentComplain ¶
func (esm *EmailSenderMock) SendCommentComplain(from, against, content, comment string, commentID, entryID int64)
func (*EmailSenderMock) SendEmailChanged ¶
func (esm *EmailSenderMock) SendEmailChanged(address, name string)
func (*EmailSenderMock) SendEntryComplain ¶
func (esm *EmailSenderMock) SendEntryComplain(from, against, content, entry string, entryID int64)
func (*EmailSenderMock) SendEntryMoved ¶
func (esm *EmailSenderMock) SendEntryMoved(address, toShowName, entryTitle string, entryID int64)
func (*EmailSenderMock) SendGreeting ¶
func (esm *EmailSenderMock) SendGreeting(address, name, code string)
func (*EmailSenderMock) SendInvited ¶
func (esm *EmailSenderMock) SendInvited(address, fromShowName, fromGender, toShowName string)
func (*EmailSenderMock) SendNewAccept ¶
func (esm *EmailSenderMock) SendNewAccept(address, fromName, fromShowName, fromGender, toShowName string)
func (*EmailSenderMock) SendNewComment ¶
func (esm *EmailSenderMock) SendNewComment(address, fromGender, toShowName, entryTitle string, cmt *models.Comment)
func (*EmailSenderMock) SendNewFollower ¶
func (esm *EmailSenderMock) SendNewFollower(address, fromName, fromShowName, fromGender string, toPrivate bool, toShowName string)
func (*EmailSenderMock) SendNewInvite ¶
func (esm *EmailSenderMock) SendNewInvite(address, name string)
func (*EmailSenderMock) SendPasswordChanged ¶
func (esm *EmailSenderMock) SendPasswordChanged(address, name string)
func (*EmailSenderMock) SendResetPassword ¶
func (esm *EmailSenderMock) SendResetPassword(address, name, gender, code string, date int64)
func (*EmailSenderMock) Stop ¶
func (esm *EmailSenderMock) Stop()
Click to show internal directories.
Click to hide internal directories.