auth

package
v0.0.0-...-0798a42 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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"
)

Jump to

Keyboard shortcuts

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