http

package
v0.0.0-...-6a35e63 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTML

func GetHTML(url string) (string, error)

func GetJSON

func GetJSON(url string, readStruct interface{}) error

Types

type RetryClient

type RetryClient struct {
	Attempts int
	Timeout  time.Duration
}

func NewDefaultRetryClient

func NewDefaultRetryClient() *RetryClient

func (RetryClient) Do

func (r RetryClient) Do(req *http.Request) (*http.Response, error)

func (RetryClient) Get

func (r RetryClient) Get(url string) (*http.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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