Documentation
¶
Overview ¶
Package mock_handler is a generated GoMock package.
Index ¶
- type MockContext
- func (m *MockContext) EXPECT() *MockContextMockRecorder
- func (m *MockContext) GetMethod() string
- func (m *MockContext) GetRequestBody() io.ReadCloser
- func (m *MockContext) GetURI() *url.URL
- func (m *MockContext) JSON(code int, obj interface{})
- func (m *MockContext) SendResponse(response *http.Response, url string)
- func (m *MockContext) Status(code int)
- type MockContextMockRecorder
- func (mr *MockContextMockRecorder) GetMethod() *gomock.Call
- func (mr *MockContextMockRecorder) GetRequestBody() *gomock.Call
- func (mr *MockContextMockRecorder) GetURI() *gomock.Call
- func (mr *MockContextMockRecorder) JSON(code, obj interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) SendResponse(response, url interface{}) *gomock.Call
- func (mr *MockContextMockRecorder) Status(code interface{}) *gomock.Call
- type MockhttpClient
- type MockhttpClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContext ¶
type MockContext struct {
// contains filtered or unexported fields
}
MockContext is a mock of Context interface.
func NewMockContext ¶
func NewMockContext(ctrl *gomock.Controller) *MockContext
NewMockContext creates a new mock instance.
func (*MockContext) EXPECT ¶
func (m *MockContext) EXPECT() *MockContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContext) GetMethod ¶
func (m *MockContext) GetMethod() string
GetMethod mocks base method.
func (*MockContext) GetRequestBody ¶
func (m *MockContext) GetRequestBody() io.ReadCloser
GetRequestBody mocks base method.
func (*MockContext) JSON ¶
func (m *MockContext) JSON(code int, obj interface{})
JSON mocks base method.
func (*MockContext) SendResponse ¶
func (m *MockContext) SendResponse(response *http.Response, url string)
SendResponse mocks base method.
type MockContextMockRecorder ¶
type MockContextMockRecorder struct {
// contains filtered or unexported fields
}
MockContextMockRecorder is the mock recorder for MockContext.
func (*MockContextMockRecorder) GetMethod ¶
func (mr *MockContextMockRecorder) GetMethod() *gomock.Call
GetMethod indicates an expected call of GetMethod.
func (*MockContextMockRecorder) GetRequestBody ¶
func (mr *MockContextMockRecorder) GetRequestBody() *gomock.Call
GetRequestBody indicates an expected call of GetRequestBody.
func (*MockContextMockRecorder) GetURI ¶
func (mr *MockContextMockRecorder) GetURI() *gomock.Call
GetURI indicates an expected call of GetURI.
func (*MockContextMockRecorder) JSON ¶
func (mr *MockContextMockRecorder) JSON(code, obj interface{}) *gomock.Call
JSON indicates an expected call of JSON.
func (*MockContextMockRecorder) SendResponse ¶
func (mr *MockContextMockRecorder) SendResponse(response, url interface{}) *gomock.Call
SendResponse indicates an expected call of SendResponse.
func (*MockContextMockRecorder) Status ¶
func (mr *MockContextMockRecorder) Status(code interface{}) *gomock.Call
Status indicates an expected call of Status.
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 ¶
func (m *MockhttpClient) EXPECT() *MockhttpClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockhttpClientMockRecorder ¶
type MockhttpClientMockRecorder struct {
// contains filtered or unexported fields
}
MockhttpClientMockRecorder is the mock recorder for MockhttpClient.
func (*MockhttpClientMockRecorder) Do ¶
func (mr *MockhttpClientMockRecorder) Do(req interface{}) *gomock.Call
Do indicates an expected call of Do.