Documentation ¶
Index ¶
- Variables
- func ReadReports(reportPath string) (map[string][]Feedback, error)
- func Repository(reportPath string) error
- func RequestAllReports() map[string][]Feedback
- func RequestDomainReports(domain string) map[string][]Feedback
- type AuthResults
- type DKIM
- type DateRange
- type Feedback
- type Identifiers
- type Metadata
- type PolicyEvaluated
- type PolicyPublished
- type Query
- type Record
- type Row
- type SPF
Constants ¶
This section is empty.
Variables ¶
View Source
var CompiledFeedbackRegexp *regexp.Regexp
Functions ¶
func Repository ¶
func RequestAllReports ¶
func RequestDomainReports ¶
Types ¶
type AuthResults ¶
type DateRange ¶
type DateRange struct { Begin customTime `xml:"begin"` End customTime `xml:"end"` }
type Feedback ¶
type Feedback struct { Metadata Metadata `xml:"report_metadata"` PolicyPublished PolicyPublished `xml:"policy_published"` Records []Record `xml:"record"` // Min 1 }
func RequestDomainReport ¶
type Identifiers ¶
type PolicyEvaluated ¶
type PolicyPublished ¶
type Record ¶
type Record struct { Row Row `xml:"row"` Identifiers Identifiers `xml:"identifiers"` AuthResults AuthResults `xml:"auth_results"` }
type Row ¶
type Row struct { SourceIP string `xml:"source_ip"` Count customInt `xml:"count"` PolicyEvaluated []PolicyEvaluated `xml:"policy_evaluated"` // Min 1 }
Click to show internal directories.
Click to hide internal directories.