Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OptFunc ¶
OptFunc represents a function type for configuring a Queue.
func WithRateDaily ¶
WithRateDaily sets the maximum number of emails that can be sent by a single sender in a day.
func WithRateMinute ¶
WithRateMinute sets the maximum number of emails that can be sent by a single sender in a minute.
func WithReadReceipts ¶
WithReadReceipts sets the email address which is to receive the "Read receipt" notifications from the sent emails.
func WithWorkers ¶
WithWorkers sets the number of simultaneous email sender workers for the Queue.
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue represents a worker queue performing email send operations.
func New ¶
New constructs an instance of queue.Queue with the provided options.
type Stats ¶
type Stats struct { Sender string `csv:"sender"` Total uint `csv:"total"` Failed uint `csv:"failed"` Bounced uint `csv:"bounced"` // contains filtered or unexported fields }
Stats represents a unique senders statistics including total emails successfully sent, emails that have failed to send as well as bounces.