cmd

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func NewCmdRoot

func NewCmdRoot() *cobra.Command

Types

type Message

type Message struct {
	Time    *time.Time `json:"time"`
	To      string     `json:"to"`
	Status  string     `json:"status"`
	Message string     `json:"message"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL