dnssec

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package dnssec is a library to Verisign Labs DNSSEC analyzer.

Index

Constants

View Source
const URL = "https://dnssec-analyzer.verisignlabs.com/"

URL is the URL of Verisign Labs DNSSEC analyzer.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analysis

type Analysis []Domain

An Analysis represents the analysis of all parts of a domain.

func Analyze

func Analyze(domain string) (Analysis, error)

Analyze analyzes the entire DNSSEC chain of a domain.

func (Analysis) Status

func (a Analysis) Status() Status

Status returns the highest status for an analysis.

func (Analysis) String

func (a Analysis) String() string

String formats the results of an analysis.

type Domain

type Domain struct {
	Name    string
	Results []Result
}

A Domain represents all the analysis for a domain.

type Result

type Result struct {
	Status  Status
	Details string
}

A Result represents the result of one analysis item for a domain.

type Status

type Status int

Status represents the result type of an analysis item.

const (
	OK Status = iota
	WARNING
	ERROR
)

func (Status) String

func (s Status) String() string

String formats a status.

Jump to

Keyboard shortcuts

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