Versions in this module Expand all Collapse all v0 v0.0.11 Apr 30, 2024 v0.0.10 Mar 9, 2024 v0.0.9 Jan 9, 2024 v0.0.8 Nov 22, 2023 Changes in this version + var EvalDB *bstore.DB + var EvalDBTypes = []any + var ReportsDB *bstore.DB + var ReportsDBTypes = []any + func AddEvaluation(ctx context.Context, aggregateReportingIntervalSeconds int, e *Evaluation) error + func EvaluationStats(ctx context.Context) (map[string]EvaluationStat, error) + func RemoveEvaluationsDomain(ctx context.Context, domain dns.Domain) error + func Start(resolver dns.Resolver) + func SuppressAdd(ctx context.Context, ba *SuppressAddress) error + func SuppressRemove(ctx context.Context, id int64) error + func SuppressUpdate(ctx context.Context, id int64, until time.Time) error + type Evaluation struct + Addresses []string + AlignedDKIMPass bool + AlignedSPFPass bool + DKIMResults []dmarcrpt.DKIMAuthResult + Disposition dmarcrpt.Disposition + EnvelopeFrom string + EnvelopeTo string + Evaluated time.Time + HeaderFrom string + ID int64 + IntervalHours int + Optional bool + OverrideReasons []dmarcrpt.PolicyOverrideReason + PolicyDomain string + PolicyPublished dmarcrpt.PolicyPublished + SPFResults []dmarcrpt.SPFAuthResult + SourceIP string + func Evaluations(ctx context.Context) ([]Evaluation, error) + func EvaluationsDomain(ctx context.Context, domain dns.Domain) ([]Evaluation, error) + func (e Evaluation) ReportRecord(count int) dmarcrpt.ReportRecord + type EvaluationStat struct + Count int + Dispositions []string + Domain dns.Domain + SendReport bool + type SuppressAddress struct + Comment string + ID int64 + Inserted time.Time + ReportingAddress string + Until time.Time + func SuppressList(ctx context.Context) ([]SuppressAddress, error) v0.0.7 Sep 24, 2023 v0.0.6 Aug 16, 2023 v0.0.5 Jul 3, 2023 v0.0.4 Jun 4, 2023 Changes in this version + var DB *bstore.DB + var DBTypes = []any v0.0.3 Apr 22, 2023 v0.0.2 Mar 6, 2023 v0.0.1 Feb 17, 2023 Changes in this version + func AddReport(ctx context.Context, f *dmarcrpt.Feedback, fromDomain dns.Domain) error + func Init() error + type DomainFeedback struct + Domain string + FromDomain string + ID int64 + func RecordID(ctx context.Context, id int64) (DomainFeedback, error) + func Records(ctx context.Context) ([]DomainFeedback, error) + func RecordsPeriodDomain(ctx context.Context, start, end time.Time, domain string) ([]DomainFeedback, error)