Documentation
¶
Index ¶
- type AlignmentPolicy
- type Policy
- type Record
- func (r *Record) Empty() bool
- func (r *Record) RecordPrefix() string
- func (r *Record) RecordType() string
- func (r *Record) RecordValue() string
- func (r *Record) Render(data interface{}) error
- func (r *Record) SetPercent(pct uint8) error
- func (r *Record) String() string
- func (r *Record) UnsetPercent()
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 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 (*Record) RecordType ¶
func (*Record) RecordValue ¶
func (*Record) SetPercent ¶
func (*Record) UnsetPercent ¶
func (r *Record) UnsetPercent()
Click to show internal directories.
Click to hide internal directories.