httputils

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfiguration

func GetConfiguration(rt http.RoundTripper, URL string, attempts int, recv interface{}) error

GetConfiguration gets json from URL and parse it as recv interface. If it fails it tries the amount of times defined in the attempts. If fails after retries returns with an error. Returns nil on success

func MustURL

func MustURL(u string) string

MustURL validates string to be URL. Panics if it's not a valid URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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