Versions in this module Expand all Collapse all v0 v0.3.0 Jul 25, 2026 Changes in this version + func AlignedMode(authDomain, fromDomain string, mode AlignmentMode, orgDomain OrgDomainFunc) bool + func ParsePct(record string) (int, error) type AggregateRecord + EnvelopeFrom string + type AlignmentMode int + const AlignmentRelaxed + const AlignmentStrict + func ParseADKIM(record string) AlignmentMode + func ParseASPF(record string) AlignmentMode + func (m AlignmentMode) String() string type Identifiers + EnvelopeFrom string type Policy + ADKIM AlignmentMode + ASPF AlignmentMode + Pct int v0.2.0 Jul 25, 2026 Changes in this version + func AlignedOrg(authDomain, fromDomain string, orgDomain OrgDomainFunc) bool + func DefaultOrgDomain(domain string) string type AggregateRecord + DKIM []DKIMAuth + SPF []SPFAuth + type DKIMAuth struct + Aligned bool + Domain string + Result string + Selector string type DKIMResult + Selector string + type OrgDomainFunc func(domain string) string + type Policy struct + Domain string + Record string + Requested string + ViaOrgDomain bool + func Discover(domain string, resolver TXTResolver, orgDomain OrgDomainFunc) (Policy, error) + type SPFAuth struct + Aligned bool + Domain string + Result string + Scope string type SPFResult + Scope string v0.1.1 Jul 23, 2026 Changes in this version + func Aligned(authDomain, fromDomain string) bool + func BuildReport(meta ReportMetadata, policy PolicyPublished, records []AggregateRecord) ([]byte, error) + func Gzip(data []byte) ([]byte, error) + func Lookup(domain string, resolver TXTResolver) (string, error) + func ParsePolicy(record string) string + type AggregateRecord struct + DKIMAligned bool + DKIMResult string + Disposition string + Domain string + HeaderFrom string + SPFAligned bool + SPFResult string + SourceIP string + type AuthResults struct + DKIM []DKIMResult + SPF []SPFResult + type DKIMResult struct + Domain string + Result string + type DateRange struct + Begin int64 + End int64 + type Feedback struct + PolicyPublished PolicyPublished + Records []ReportRecord + ReportMetadata ReportMetadata + Version string + XMLName xml.Name + type Identifiers struct + HeaderFrom string + type PolicyEvaluated struct + DKIM string + Disposition string + SPF string + type PolicyPublished struct + ADKIM string + ASPF string + Domain string + P string + PCT int + SP string + type ReportMetadata struct + DateRange DateRange + Email string + OrgName string + ReportID string + type ReportRecord struct + AuthResults AuthResults + Identifiers Identifiers + Row Row + func AggregateRecords(records []AggregateRecord) []ReportRecord + type Row struct + Count int + PolicyEvaluated PolicyEvaluated + SourceIP string + type SPFResult struct + Domain string + Result string + type TXTResolver func(name string) ([]string, error)