Documentation ¶
Overview ¶
Package httpx is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientItf ¶
type ClientItf interface { // Do sends http request and returns the response. Do(req *http.Request) (*http.Response, error) }
ClientItf is a http client.
type MockClientItf ¶
type MockClientItf struct {
// contains filtered or unexported fields
}
MockClientItf is a mock of ClientItf interface.
func NewMockClientItf ¶
func NewMockClientItf(ctrl *gomock.Controller) *MockClientItf
NewMockClientItf creates a new mock instance.
func (*MockClientItf) EXPECT ¶
func (m *MockClientItf) EXPECT() *MockClientItfMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientItfMockRecorder ¶
type MockClientItfMockRecorder struct {
// contains filtered or unexported fields
}
MockClientItfMockRecorder is the mock recorder for MockClientItf.
func (*MockClientItfMockRecorder) Do ¶
func (mr *MockClientItfMockRecorder) Do(req interface{}) *gomock.Call
Do indicates an expected call of Do.
type MockReadCloserItf ¶
type MockReadCloserItf struct {
// contains filtered or unexported fields
}
MockReadCloserItf is a mock of ReadCloserItf interface.
func NewMockReadCloserItf ¶
func NewMockReadCloserItf(ctrl *gomock.Controller) *MockReadCloserItf
NewMockReadCloserItf creates a new mock instance.
func (*MockReadCloserItf) Close ¶
func (m *MockReadCloserItf) Close() error
Close mocks base method.
func (*MockReadCloserItf) EXPECT ¶
func (m *MockReadCloserItf) EXPECT() *MockReadCloserItfMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockReadCloserItfMockRecorder ¶
type MockReadCloserItfMockRecorder struct {
// contains filtered or unexported fields
}
MockReadCloserItfMockRecorder is the mock recorder for MockReadCloserItf.
func (*MockReadCloserItfMockRecorder) Close ¶
func (mr *MockReadCloserItfMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockReadCloserItfMockRecorder) Read ¶
func (mr *MockReadCloserItfMockRecorder) Read(arg0 interface{}) *gomock.Call
Read indicates an expected call of Read.