plugins

package
v0.0.0-...-eb2995d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2017 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugins []PluginFn = []PluginFn{}

Functions

func Question

func Question(z string, t uint16) question

func Resolver

func Resolver() *resolver

Types

type Issue

type Issue struct {
	Severity    Severity
	Message     string
	Description string
}

type OptionFn

type OptionFn func(interface{})

type Plugin

type Plugin interface {
	// Gather(domain string) (Result, error)
	Name() string

	Check(domain string) <-chan Issue
}

func DKIMPlugin

func DKIMPlugin(options ...OptionFn) Plugin

func DMARCPlugin

func DMARCPlugin(options ...OptionFn) Plugin

func DNSSecPlugin

func DNSSecPlugin(options ...OptionFn) Plugin

func DomainKeyPlugin

func DomainKeyPlugin(options ...OptionFn) Plugin

func GrabPlugin

func GrabPlugin(options ...OptionFn) Plugin

func MXPlugin

func MXPlugin(options ...OptionFn) Plugin

func NSPlugin

func NSPlugin(options ...OptionFn) Plugin

func SPFPlugin

func SPFPlugin(options ...OptionFn) Plugin

func TXTPlugin

func TXTPlugin(options ...OptionFn) Plugin

type PluginFn

type PluginFn func(...OptionFn) Plugin

func Register

func Register(p PluginFn) PluginFn

type Severity

type Severity string
const (
	SeverityError   Severity = "ERROR"
	SeverityWarning Severity = "WARNING"
	SeverityInfo    Severity = "INFO"
	SeverityDebug   Severity = "DEBUG"
	SeverityOK      Severity = "OK"
)

Jump to

Keyboard shortcuts

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