Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version describes the version of the current build. Version = "dev" // Commit describes the commit of the current build. Commit = "none" // Date describes the date of the current build. Date = time.Now().UTC() )
Functions ¶
Types ¶
type EmailProcessor ¶
type EmailProcessor struct {
// contains filtered or unexported fields
}
type ProcessMetrics ¶
type ProcessMetrics struct {
TotalEmails int64
SentEmails int64
FailedEmails int64
LastProcessedID string
StartTime time.Time
EndTime time.Time
// contains filtered or unexported fields
}
func (*ProcessMetrics) IncrementFailed ¶
func (m *ProcessMetrics) IncrementFailed()
func (*ProcessMetrics) IncrementSent ¶
func (m *ProcessMetrics) IncrementSent()
type ProcessingState ¶
type ProcessingState string
const ( StateInit ProcessingState = "init" StateProcessing ProcessingState = "processing" StateFailed ProcessingState = "failed" StateCompleted ProcessingState = "completed" )
type ProcessorOptions ¶
type ProcessorOptions struct {
BatchSize int
WorkerCount int
MaxRetries int
ProcessingTimeout time.Duration
EmailTimeout time.Duration
RateLimit int
}
func DefaultProcessorOptions ¶
func DefaultProcessorOptions() ProcessorOptions
Click to show internal directories.
Click to hide internal directories.