spf

package
v0.0.0-...-db81b43 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpfStringForDomain

func GetSpfStringForDomain(opts *shared.Options) (*string, error)

Types

type SpfRecord

type SpfRecord struct {
	Version        string
	Record         string
	Mechanisms     []string
	AllString      string
	Domain         string
	RecursionDepth int8
}

func FromDomain

func FromDomain(opts *shared.Options) (*SpfRecord, error)

func FromSpfString

func FromSpfString(spfString *string, domain string) (*SpfRecord, error)

func (*SpfRecord) AreIncludeMechanismsStrong

func (spf *SpfRecord) AreIncludeMechanismsStrong(opts *shared.Options) (bool, error)

func (*SpfRecord) GetIncludeDomains

func (spf *SpfRecord) GetIncludeDomains() []string

func (*SpfRecord) GetIncludeRecords

func (spf *SpfRecord) GetIncludeRecords(dnsResolver string) (map[string]*SpfRecord, error)

func (*SpfRecord) GetRedirectDomain

func (spf *SpfRecord) GetRedirectDomain() string

func (*SpfRecord) IsAllMechanismStrong

func (spf *SpfRecord) IsAllMechanismStrong() bool

func (*SpfRecord) IsRecordStrong

func (spf *SpfRecord) IsRecordStrong(opts *shared.Options) (bool, error)

func (*SpfRecord) IsRedirectMechanismStrong

func (spf *SpfRecord) IsRedirectMechanismStrong(dnsResolver string) (bool, error)

Jump to

Keyboard shortcuts

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