http

package
v0.0.0-...-f4b316e Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2019 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_TIMEOUT       = 30 * time.Second
	DEFAULT_RETRY_COUNTER = 3
	USERAGENT             = "Monitoring"
)

Variables

This section is empty.

Functions

func New

func New(url string) *check

Types

type ExecuteRequest

type ExecuteRequest func(req *http.Request) (resp *http.Response, err error)

type Expectation

type Expectation func(httpResponse *HttpResponse) error

type HttpResponse

type HttpResponse struct {
	Content    []byte
	StatusCode int
}

Jump to

Keyboard shortcuts

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