basic

package
v0.0.0-...-8b57a7c Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) client.ClientInterface

New -

Types

type Client

type Client struct {
	http.Client
	RetryCount int
	Retrier    retry.Retriable
}

Client -

func (*Client) Do

func (c *Client) Do(request *http.Request) (*http.Response, error)

Do - http.Client implements do method

type Option

type Option func(*Client)

Option -

func Retrier

func Retrier(retrier retry.Retriable) Option

Retrier -

func RetryCount

func RetryCount(retryCount int) Option

RetryCount -

func Timeout

func Timeout(timeout time.Duration) Option

Timeout -

Jump to

Keyboard shortcuts

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