dmarc

package
v0.0.0-...-488ba96 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	From string
	Name string
	Data *bytes.Buffer
}

Content is the structure for processing data

type Feedback

type Feedback struct {
	XMLName         xml.Name `xml:"feedback"`
	FromFile        string
	ReportMetadata  reportMetadata  `xml:"report_metadata"`
	PolicyPublished policyPublished `xml:"policy_published"`
	Records         []record        `xml:"record"`
}

Feedback contains the reports and file information

func Read

func Read(b []byte) (Feedback, error)

Read a dmarc xml report

type Report

type Report struct {
	ID                     int64
	ReportBegin            time.Time
	ReportEnd              time.Time
	PolicyDomain           string
	ReportOrg              string
	ReportID               string
	ReportEmail            string
	ReportExtraContactInfo string
	PolicyAdkim            string
	PolicyAspf             string
	PolicyP                string
	PolicySP               string
	PolicyPCT              string
	Count                  int64
	DKIMResult             string
	SPFResult              string
	Items                  int
}

Report is the content of the report

type Reports

type Reports struct {
	Reports    []Report
	LastPage   int
	CurPage    int
	NextPage   int
	TotalPages int
	Pages      []int
}

Reports is the collection of reports

type Row

type Row struct {
	SourceIP        string
	Count           int64
	EvalDisposition string
	EvalSPFAlign    string
	EvalDKIMAalign  string
	Reason          string
	DKIMDomain      string
	DKIMResult      string
	SPFDomain       string
	SPFResult       string
	IdentifierHFrom string
}

Row is the dmarc row in a report

type Rows

type Rows struct {
	Report Report
	Rows   []Row
}

Rows is jus the report and the rows of a report

Jump to

Keyboard shortcuts

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