breaker

package
v0.0.0-...-22bf50c Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

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

Get will fetch the HTTP resource from url using a GET method, wrapped in a circuit breaker named name

func GetWithFallback

func GetWithFallback(name string, url string, f func(error) error) (resp *http.Response, err error)

GetWithFallback will fetch the HTTP resource from url using a GET method, wrapped in a circuit breaker named name. If the operation fails, the fallback function f is called with the previous error as an argument

Types

This section is empty.

Jump to

Keyboard shortcuts

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