Documentation ¶
Overview ¶
Package stats stores and returns Mailpit statistics
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogSMTPReceived ¶
func LogSMTPReceived(size int)
LogSMTPReceived logs a successfully SMTP transaction
Types ¶
type AppInformation ¶
type AppInformation struct { // Current Mailpit version Version string // Latest Mailpit version LatestVersion string // Database path Database string // Database size in bytes DatabaseSize int64 // Total number of messages in the database Messages int // Total number of messages in the database Unread int // Tags and message totals per tag Tags map[string]int64 // Runtime statistics RuntimeStats struct { // Mailpit server uptime in seconds Uptime int // Current memory usage in bytes Memory uint64 // Messages deleted MessagesDeleted int // SMTP messages received via since run SMTPReceived int // Total size in bytes of received messages since run SMTPReceivedSize int // SMTP errors since run SMTPErrors int // SMTP messages ignored since run (duplicate IDs) SMTPIgnored int } }
AppInformation struct swagger:model AppInformation
Click to show internal directories.
Click to hide internal directories.