spf

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: LGPL-3.0 Imports: 2 Imported by: 1

README

Spf

An ultra-simple library for SPF (Sender Policy Framework) checking in Go.

Go Report Card Go Reference

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNeutral  = &Error{error: "record returned neutral", errorType: ErrTypeNeutral}
	ErrFail     = &Error{error: "record returned explicit fail", errorType: ErrTypeFail}
	ErrSoftFail = &Error{error: "record returned soft fail", errorType: ErrTypeSoftFail}
	ErrNone     = &Error{error: "no record returned", errorType: ErrTypeNone}
)

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func CheckIP

func CheckIP(ip string, domain string) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Type

func (e *Error) Type() ErrorType

type ErrorType

type ErrorType int
const (
	ErrTypeNeutral ErrorType = iota
	ErrTypeNone
	ErrTypeFail
	ErrTypeSoftFail
	ErrTypeInternal
)

Jump to

Keyboard shortcuts

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