pingdumb

package
v0.0.0-...-e3bd1bf Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Start    time.Time
	Stop     time.Time
	Addr     string
	Response *http.Response
	// contains filtered or unexported fields
}

func (*Check) Err

func (c *Check) Err() error

type ReportConfig

type ReportConfig struct {
	Resolvers []*net.Resolver
	Timeout   time.Duration
	Target    string
}

type Review

type Review struct {
	Start  time.Time
	Stop   time.Time
	Checks []*Check
	Target string
}

func GetReport

func GetReport(config ReportConfig) (*Review, error)

getReport makes multiple HTTP GET requests to a target url (one request per IP addr found from DNS lookup)

func (*Review) Failures

func (r *Review) Failures() []*Check

func (*Review) OK

func (r *Review) OK() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳