Documentation ¶ Index ¶ func DumpSPF(rec *SPFRecord, indent string) func Lookup(target string, dnsres dnsresolver.DnsResolver) (string, error) type SPFPart type SPFRecord func Parse(text string, dnsres dnsresolver.DnsResolver) (*SPFRecord, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DumpSPF ¶ func DumpSPF(rec *SPFRecord, indent string) DumpSPF outputs an SPFRecord and related data for debugging purposes. func Lookup ¶ func Lookup(target string, dnsres dnsresolver.DnsResolver) (string, error) Types ¶ type SPFPart ¶ type SPFPart struct { Text string Lookups int IncludeRecord *SPFRecord } type SPFRecord ¶ type SPFRecord struct { Lookups int Parts []*SPFPart } func Parse ¶ func Parse(text string, dnsres dnsresolver.DnsResolver) (*SPFRecord, error) Source Files ¶ View all Source files parse.go Click to show internal directories. Click to hide internal directories.