clients

package
v1.2.49 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: http.go

Generated by this command:

mockgen -source=http.go -package=clients -destination=./http_mock.go

Package clients is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultHTTPClient

type DefaultHTTPClient struct {
	// contains filtered or unexported fields
}

DefaultHTTPClient is a wrapper around http.Client that implements the HTTPClient interface.

func (*DefaultHTTPClient) Get

func (c *DefaultHTTPClient) Get(url string) (*http.Response, error)

type HTTPClient

type HTTPClient interface {
	Get(url string) (*http.Response, error)
}

func NewDefaultHTTPClient

func NewDefaultHTTPClient(client *http.Client) HTTPClient

type MockHTTPClient

type MockHTTPClient struct {
	// contains filtered or unexported fields
}

MockHTTPClient is a mock of HTTPClient interface.

func NewMockHTTPClient

func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient

NewMockHTTPClient creates a new mock instance.

func (*MockHTTPClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHTTPClient) Get

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

Get mocks base method.

type MockHTTPClientMockRecorder

type MockHTTPClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient.

func (*MockHTTPClientMockRecorder) Get

func (mr *MockHTTPClientMockRecorder) Get(url any) *gomock.Call

Get indicates an expected call of Get.

Jump to

Keyboard shortcuts

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