Documentation
¶
Index ¶
Constants ¶
View Source
const ResultsPerPage = 100
Variables ¶
View Source
var CSVHeader = []string{
"MailFrom",
"MailTo",
"MessageID",
"Queue",
"NumberOfAttempts",
"TimeMin",
"TimeMax",
"Status",
"DSN",
"Expired",
"Relays",
"RawLogMsgs",
}
View Source
var ErrNoAvailableLogs = errors.New(`No available logs`)
Functions ¶
This section is empty.
Types ¶
type Detective ¶
type Message ¶
type Message struct { Queue QueueName `json:"queue"` MessageID string `json:"message_id"` Entries []MessageDelivery `json:"entries"` }
type MessageDelivery ¶
type MessageDelivery struct { NumberOfAttempts int `json:"number_of_attempts"` TimeMin time.Time `json:"time_min"` TimeMax time.Time `json:"time_max"` Status Status `json:"status"` Dsn string `json:"dsn"` Relays []string `json:"relays"` Expired *time.Time `json:"expired"` MailFrom string `json:"from"` MailTo []string `json:"to"` RawLogMsgs []string `json:"log_msgs"` }
func (*MessageDelivery) ExportCSV ¶
func (d *MessageDelivery) ExportCSV(queue, messageid string) []string
type MessagesPage ¶
type MessagesPage struct { PageNumber int `json:"page"` FirstPage int `json:"first_page"` LastPage int `json:"last_page"` TotalResults int `json:"total"` Messages Messages `json:"messages"` }
func (*MessagesPage) ExportCSV ¶
func (p *MessagesPage) ExportCSV() [][]string
type Status ¶
type Status parser.SmtpStatus
func (Status) MarshalJSON ¶
func (*Status) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.