spflib

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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