httputil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package httputil implements various HTTP operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGet

func CheckGet(lg *zap.Logger, u, exp string, retries int, interval time.Duration, stopc chan struct{}) bool

CheckGet retries until HTTP response returns the expected output.

func Download

func Download(lg *zap.Logger, w io.Writer, ep string) (downloadedData []byte, err error)

Download downloads the file with progress bar. The progress is written to the writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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