mocks

package
v0.5.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 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 MockClient

type MockClient struct {
	DoFn func(req *http.Request) (*http.Response, error)
}

MockClient is a mock HTTP client.

func (*MockClient) Do

func (m *MockClient) Do(req *http.Request) (*http.Response, error)

Do calls the underlying DoFn.

Jump to

Keyboard shortcuts

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