request

package
v0.0.0-...-5c26a86 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseLog

type ResponseLog struct {
	Timestamp  time.Time
	StatusCode string
	URL        string
	TTFB       time.Duration
	LoadTime   time.Duration
	Success    bool
}

ResponseLog represents the info we keep as log from the requests we issue

func Send

func Send(t time.Time, url string) (ResponseLog, error)

Send performs a request to the given URL

Jump to

Keyboard shortcuts

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