internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *Cfg) (*http.Request, error)

New validates the config and builds a new HTTP request.

Types

type Cfg

type Cfg struct {
	Headers []string
	URL     string
	Method  string
	File    string
	Seconds int
}

Cfg is used to determine how we build an HTTP request.

Jump to

Keyboard shortcuts

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