http

package
v0.0.0-...-8717a1f Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJSONRequest

func CreateJSONRequest(method string, path string, requestBody interface{}) (*http.Request, error)

func WithClientTimeout

func WithClientTimeout(timeout time.Duration) func(ic *InstrumentedClient)

Types

type Client

type Client interface {
	Do(*http.Request) (*http.Response, error)
}

type InstrumentedClient

type InstrumentedClient struct {
	// contains filtered or unexported fields
}

func NewInstrumentedClient

func NewInstrumentedClient(namespace string, options ...func(*InstrumentedClient)) *InstrumentedClient

func (InstrumentedClient) Do

func (i InstrumentedClient) Do(req *http.Request) (res *http.Response, err error)

Directories

Path Synopsis
clients

Jump to

Keyboard shortcuts

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