Documentation ¶ Index ¶ Constants func CreateParser(m Method) func(*mail.Header, []string) (*Details, error) type Details type Method type ParserFunc func New(s string) ParserFunc type Result Constants ¶ View Source const ( AuthHeader = "Authentication-Results" ) Variables ¶ This section is empty. Functions ¶ func CreateParser ¶ func CreateParser(m Method) func(*mail.Header, []string) (*Details, error) Types ¶ type Details ¶ type Details struct { Results []Result Infos []string Reasons []string Err error } type Method ¶ type Method string const ( DKIM Method = "dkim" SPF Method = "spf" DMARC Method = "dmarc" ) type ParserFunc ¶ type ParserFunc func(*mail.Header, []string) (*Details, error) func New ¶ func New(s string) ParserFunc type Result ¶ type Result string const ( ResultNone Result = "none" ResultPass Result = "pass" ResultFail Result = "fail" ResultNeutral Result = "neutral" ResultPolicy Result = "policy" ) Source Files ¶ View all Source files auth.go Click to show internal directories. Click to hide internal directories.