Documentation
¶
Index ¶
- func FormatFeedback(feedback Feedback, color bool) string
- func FormatHeader() string
- func FormatStatus(status string, color bool) string
- func GroupByOrgName(feedbacks []Feedback) map[string][]Feedback
- func OrderByBeginTime(feedbacks []Feedback)
- type AuthResults
- type DKIMResult
- type DateRange
- type Feedback
- type Identifiers
- type PolicyEvaluated
- type PolicyPublished
- type Record
- type ReportMetadata
- type Row
- type SPFResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatFeedback ¶
func FormatHeader ¶
func FormatHeader() string
func FormatStatus ¶
func GroupByOrgName ¶
func OrderByBeginTime ¶
func OrderByBeginTime(feedbacks []Feedback)
Types ¶
type AuthResults ¶
type AuthResults struct {
DKIM DKIMResult `xml:"dkim"`
SPF SPFResult `xml:"spf"`
}
type DKIMResult ¶
type DateRange ¶
func (*DateRange) UnmarshalXML ¶
type Feedback ¶
type Feedback struct {
ReportMetadata ReportMetadata `xml:"report_metadata"`
PolicyPublished PolicyPublished `xml:"policy_published"`
Record Record `xml:"record"`
}
func DeduplicateFeedbacks ¶
func FilterFeedbacks ¶
func MergeAdjacentFeedbacks ¶
func ParseDMARCReport ¶
func (Feedback) HasFailures ¶
type Identifiers ¶
type Identifiers struct {
HeaderFrom string `xml:"header_from"`
}
type PolicyEvaluated ¶
type PolicyPublished ¶
type PolicyPublished struct {
Domain string `xml:"domain"`
}
type Record ¶
type Record struct {
Row Row `xml:"row"`
Identifiers Identifiers `xml:"identifiers"`
AuthResults AuthResults `xml:"auth_results"`
}
type ReportMetadata ¶
type Row ¶
type Row struct {
SourceIP string `xml:"source_ip"`
PolicyEvaluated PolicyEvaluated `xml:"policy_evaluated"`
}
Click to show internal directories.
Click to hide internal directories.