crash.software
Projects
Pull Requests
Issues
Builds
gophish
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
gophish
Files
🤬
Sign In
faadf0c8
ROOT
/
mailer
/
mockmailer.go
Search
History
178 lines
|
ISO-8859-1
|
3 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
errHostUnreachable
errDialerUnavailable
mockDialer
dialCount
:
int
dial
:
func() (Sender, error)
newMockDialer
()
:
*mockDialer
mockSender
messages
:
[]*mockMessage
status
:
string
send
:
func(*mockMessage) error
messageChan
:
chan *mockMessage
resetCount
:
int
newMockSender
()
:
*mockSender
mockMessage
from
:
string
to
:
[]string
message
:
[]byte
sendAt
:
time.Time
backoffCount
:
int
getdialer
:
func() (Dialer, error)
err
:
error
finished
:
bool
newMockMessage
(from string, to []string, msg io.WriterTo)
:
*mockMessage
*mockDialer
defaultDial
()
:
(Sender, error)
unreachableDial
()
:
(Sender, error)
Dial
()
:
(Sender, error)
setDial
(dial func() (Sender, error))
*mockSender
setSend
(send func(*mockMessage) error)
defaultSend
(mm *mockMessage)
:
error
Send
(from string, to []string, msg io.WriterTo)
:
error
Close
()
:
error
Reset
()
:
error
*mockMessage
setDialer
(dialer func() (Dialer, error))
defaultDialer
()
:
(Dialer, error)
errorDialer
()
:
(Dialer, error)
GetDialer
()
:
(Dialer, error)
Backoff
(reason error)
:
error
Error
(err error)
:
error
Finish
()
:
error
Generate
(message *gomail.Message)
:
error
Success
()
:
error
All occurrences
Please wait...
Page is in error, reload to recover