mock

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DoFunc func(req *http.Request) (*http.Response, error)
)

DoFunc is the function that will be called when the mock rest client is used.

Functions

This section is empty.

Types

type RestClient

type RestClient struct{}

RestClient is a mock implementation of the restclient.Client interface.

func (*RestClient) Do

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

Do is a mock implementation of the restclient.Client.Do function.

Jump to

Keyboard shortcuts

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