Documentation
¶
Overview ¶
Package http is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
// Do performs an HTTP request and returns the response.
Do(req *http.Request) (*http.Response, error)
}
Client defines the interface for making HTTP requests. This interface allows for easy mocking in tests.
type DefaultClient ¶
type DefaultClient struct {
// contains filtered or unexported fields
}
DefaultClient is the default HTTP client implementation.
func NewDefaultClient ¶
func NewDefaultClient(timeout time.Duration) *DefaultClient
NewDefaultClient creates a new DefaultClient with the specified timeout.
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
Click to show internal directories.
Click to hide internal directories.