Documentation ¶
Index ¶
- type Procrastinator
- func (p *Procrastinator) WaitForConnection() msmtpd.ConnectionChecker
- func (p *Procrastinator) WaitForData() msmtpd.DataChecker
- func (p *Procrastinator) WaitForHelo() msmtpd.HelloChecker
- func (p *Procrastinator) WaitForRecipient() msmtpd.RecipientChecker
- func (p *Procrastinator) WaitForSender() msmtpd.SenderChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Procrastinator ¶
type Procrastinator struct { // ConstantDelay added to all calls ConstantDelay time.Duration // RandomDelay can be used to decrease efficiency of timing attacks for bruteforcing passwords RandomDelay time.Duration // KarmaCoefficient makes things go faster when transaction karma is good KarmaCoefficient time.Duration }
Procrastinator used to add random delays based on transaction karma - lower the karma, more the delays
func (*Procrastinator) WaitForConnection ¶
func (p *Procrastinator) WaitForConnection() msmtpd.ConnectionChecker
WaitForConnection should be called when you want client to train patience waiting when server will greet you
func (*Procrastinator) WaitForData ¶
func (p *Procrastinator) WaitForData() msmtpd.DataChecker
WaitForData should be called when you want client to train waiting for DATA
func (*Procrastinator) WaitForHelo ¶
func (p *Procrastinator) WaitForHelo() msmtpd.HelloChecker
WaitForHelo should be called when you want client to train patience waiting for HELO/EHLO
func (*Procrastinator) WaitForRecipient ¶
func (p *Procrastinator) WaitForRecipient() msmtpd.RecipientChecker
WaitForRecipient should be called when you want client to train patience waiting for RCPT TO
func (*Procrastinator) WaitForSender ¶
func (p *Procrastinator) WaitForSender() msmtpd.SenderChecker
WaitForSender should be called when you want client to train patience waiting for MAIL FROM
Click to show internal directories.
Click to hide internal directories.