mocks

package
v0.386.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: AGPL-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)
	GetFunc func(string) (*http.Response, error)
)

Functions

This section is empty.

Types

type MockClient

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

func (*MockClient) Do

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

func (*MockClient) Get

func (m *MockClient) Get(url string) (*http.Response, error)

Jump to

Keyboard shortcuts

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