reachable

package
v0.0.0-...-b0ba51a Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsReachableAsync

func IsReachableAsync(ctx context.Context, ch chan<- Reachable, chErr chan<- error, urls ...string)

IsReachableAsync checks if a domain is reachable in a async way

Types

type Reachable

type Reachable struct {
	Domain     string
	Port       string
	IP         string
	StatusCode int
	Response   *httpstat.Result
}

Reachable represents the response for a domain check

func IsReachable

func IsReachable(ctx context.Context, t *Target) (Reachable, error)

IsReachable checks if a domain is reachable

type Target

type Target struct {
	URL    string
	Method string
}

func NewTarget

func NewTarget(url string) *Target

Jump to

Keyboard shortcuts

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