dmarc

package
v0.42.13 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignmentPolicy

type AlignmentPolicy string
const (
	AlignmentPolicyStrict  AlignmentPolicy = "s"
	AlignmentPolicyRelaxed AlignmentPolicy = "r"
)

type Policy

type Policy string
const (
	PolicyNone       Policy = "none"
	PolicyQuarantine Policy = "quarantine"
	PolicyReject     Policy = "reject"
)

type Record

type Record struct {
	Version             string          `mapstructure:"version"`
	Policy              Policy          `mapstructure:"policy"`
	Percent             *uint8          `mapstructure:"percent"`
	ReportURIAggregate  []string        `mapstructure:"report-uri-aggregate"`
	ReportURIFailure    []string        `mapstructure:"report-uri-failure"`
	SubdomainPolicy     Policy          `mapstructure:"subdomain-policy"`
	AlignmentPolicyDKIM AlignmentPolicy `mapstructure:"alignment-policy-dkim"`
	AlignmentPolicySPF  AlignmentPolicy `mapstructure:"alignment-policy-spf"`
}

func (*Record) RecordPrefix

func (r *Record) RecordPrefix() string

func (*Record) RecordType

func (r *Record) RecordType() string

func (*Record) RecordValue

func (r *Record) RecordValue() string

func (*Record) Render

func (r *Record) Render(data interface{}) error

func (*Record) SetPercent

func (r *Record) SetPercent(pct uint8) error

func (*Record) String

func (r *Record) String() string

func (*Record) UnsetPercent

func (r *Record) UnsetPercent()

Jump to

Keyboard shortcuts

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