Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdRoot ¶
Types ¶
type PostfixLogParser ¶
type PostfixLogParser struct { Time *time.Time `json:"time"` Hostname string `json:"hostname"` Process string `json:"process"` QueueId string `json:"queue_id"` ClientHostname string `json:"client_hostname"` ClinetIp string `json:"client_ip"` SaslMethod string `json:"sasl_method"` SaslUsername string `json:"sasl_username"` MessageId string `json:"message_id"` From string `json:"from"` Size string `json:"size"` NRcpt string `json:"nrcpt"` Messages []Message `json:"messages"` }
type PostfixLogParserFlat ¶ added in v1.1.0
type PostfixLogParserFlat struct { Time *time.Time `json:"timestamp"` Hostname string `json:"hostname"` Process string `json:"process"` QueueId string `json:"queue_id"` ClientHostname string `json:"client_hostname"` ClinetIp string `json:"client_ip"` SaslMethod string `json:"sasl_method"` SaslUsername string `json:"sasl_username"` MessageId string `json:"message_id"` From string `json:"from"` Size string `json:"size"` NRcpt string `json:"nrcpt"` TimeSent *time.Time `json:"time_sent"` To string `json:"to"` Status string `json:"status"` Message string `json:"message"` }
func PlpToFlat ¶ added in v1.1.0
func PlpToFlat(plp *PostfixLogParser) []PostfixLogParserFlat
Click to show internal directories.
Click to hide internal directories.