restclient

package
v0.0.0-...-c583576 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewClient)

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type MockRestClient

type MockRestClient struct {
	mock.Mock
}

MockRestClient is an autogenerated mock type for the RestClient type

func NewMockRestClient

func NewMockRestClient(t mockConstructorTestingTNewMockRestClient) *MockRestClient

NewMockRestClient creates a new instance of MockRestClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockRestClient) Do

func (_m *MockRestClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

type RestClient

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

RestClient interface

func NewClient

func NewClient() RestClient

NewClient return HTTPClient

Jump to

Keyboard shortcuts

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