roundtrip

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRoundTripper

type MockRoundTripper struct {
	ResponseStatusCodes []int
	CreateErr           bool
	CallNumber          int
}

This roundtripper is a noop and is intended for use only within tests.

func (*MockRoundTripper) RoundTrip

func (mockRT *MockRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip Performs a "noop" round trip. It is intended for use only within tests.

Jump to

Keyboard shortcuts

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