Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockIContext
- func (m *MockIContext) Clone() interfaces.IContext
- func (m *MockIContext) EXPECT() *MockIContextMockRecorder
- func (m *MockIContext) Middleware() interfaces.IMiddleware
- func (m *MockIContext) Next()
- func (m *MockIContext) Request() interfaces.IRequest
- func (m *MockIContext) Reset(arg0 http.ResponseWriter, arg1 *http.Request, arg2 interfaces.IMiddleware)
- func (m *MockIContext) Response() interfaces.IResponse
- type MockIContextMockRecorder
- func (mr *MockIContextMockRecorder) Clone() *gomock.Call
- func (mr *MockIContextMockRecorder) Middleware() *gomock.Call
- func (mr *MockIContextMockRecorder) Next() *gomock.Call
- func (mr *MockIContextMockRecorder) Request() *gomock.Call
- func (mr *MockIContextMockRecorder) Reset(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIContextMockRecorder) Response() *gomock.Call
- type MockIModel
- func (m *MockIModel) EXPECT() *MockIModelMockRecorder
- func (m *MockIModel) MapFromByFieldName(src interface{}) interfaces.IModel
- func (m *MockIModel) MapFromByFieldTag(src interface{}) interfaces.IModel
- func (m *MockIModel) MapToByFieldName(dest interface{}) interfaces.IModel
- func (m *MockIModel) MapToByFieldTag(dest interface{}) interfaces.IModel
- func (m *MockIModel) ModelError() error
- func (m *MockIModel) New(model interface{}) interfaces.IModel
- func (m *MockIModel) Validate() interfaces.IModel
- type MockIModelMockRecorder
- func (mr *MockIModelMockRecorder) MapFromByFieldName(src interface{}) *gomock.Call
- func (mr *MockIModelMockRecorder) MapFromByFieldTag(src interface{}) *gomock.Call
- func (mr *MockIModelMockRecorder) MapToByFieldName(dest interface{}) *gomock.Call
- func (mr *MockIModelMockRecorder) MapToByFieldTag(dest interface{}) *gomock.Call
- func (mr *MockIModelMockRecorder) ModelError() *gomock.Call
- func (mr *MockIModelMockRecorder) New(model interface{}) *gomock.Call
- func (mr *MockIModelMockRecorder) Validate() *gomock.Call
- type MockIRequest
- func (m *MockIRequest) Body() string
- func (m *MockIRequest) EXPECT() *MockIRequestMockRecorder
- func (m *MockIRequest) Method() string
- func (m *MockIRequest) Param(arg0 string) string
- func (m *MockIRequest) Path() string
- func (m *MockIRequest) PostForm(key string) string
- func (m *MockIRequest) Query(key string) string
- func (m *MockIRequest) SetParams(arg0 map[string]string)
- type MockIRequestMockRecorder
- func (mr *MockIRequestMockRecorder) Body() *gomock.Call
- func (mr *MockIRequestMockRecorder) Method() *gomock.Call
- func (mr *MockIRequestMockRecorder) Param(arg0 interface{}) *gomock.Call
- func (mr *MockIRequestMockRecorder) Path() *gomock.Call
- func (mr *MockIRequestMockRecorder) PostForm(key interface{}) *gomock.Call
- func (mr *MockIRequestMockRecorder) Query(key interface{}) *gomock.Call
- func (mr *MockIRequestMockRecorder) SetParams(arg0 interface{}) *gomock.Call
- type MockIResponse
- func (m *MockIResponse) Data(code int, data []byte)
- func (m *MockIResponse) EXPECT() *MockIResponseMockRecorder
- func (m *MockIResponse) HTML(code int, html string)
- func (m *MockIResponse) Header(key, value string)
- func (m *MockIResponse) JSON(code int, obj interface{})
- func (m *MockIResponse) Status(code int)
- func (m *MockIResponse) String(code int, format string, values ...interface{})
- type MockIResponseMockRecorder
- func (mr *MockIResponseMockRecorder) Data(code, data interface{}) *gomock.Call
- func (mr *MockIResponseMockRecorder) HTML(code, html interface{}) *gomock.Call
- func (mr *MockIResponseMockRecorder) Header(key, value interface{}) *gomock.Call
- func (mr *MockIResponseMockRecorder) JSON(code, obj interface{}) *gomock.Call
- func (mr *MockIResponseMockRecorder) Status(code interface{}) *gomock.Call
- func (mr *MockIResponseMockRecorder) String(code, format interface{}, values ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIContext ¶
type MockIContext struct {
// contains filtered or unexported fields
}
MockIContext is a mock of IContext interface.
func NewMockIContext ¶
func NewMockIContext(ctrl *gomock.Controller) *MockIContext
NewMockIContext creates a new mock instance.
func (*MockIContext) Clone ¶
func (m *MockIContext) Clone() interfaces.IContext
Clone mocks base method.
func (*MockIContext) EXPECT ¶
func (m *MockIContext) EXPECT() *MockIContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIContext) Middleware ¶
func (m *MockIContext) Middleware() interfaces.IMiddleware
Middleware mocks base method.
func (*MockIContext) Request ¶
func (m *MockIContext) Request() interfaces.IRequest
Request mocks base method.
func (*MockIContext) Reset ¶
func (m *MockIContext) Reset(arg0 http.ResponseWriter, arg1 *http.Request, arg2 interfaces.IMiddleware)
Reset mocks base method.
func (*MockIContext) Response ¶
func (m *MockIContext) Response() interfaces.IResponse
Response mocks base method.
type MockIContextMockRecorder ¶
type MockIContextMockRecorder struct {
// contains filtered or unexported fields
}
MockIContextMockRecorder is the mock recorder for MockIContext.
func (*MockIContextMockRecorder) Clone ¶
func (mr *MockIContextMockRecorder) Clone() *gomock.Call
Clone indicates an expected call of Clone.
func (*MockIContextMockRecorder) Middleware ¶
func (mr *MockIContextMockRecorder) Middleware() *gomock.Call
Middleware indicates an expected call of Middleware.
func (*MockIContextMockRecorder) Next ¶
func (mr *MockIContextMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockIContextMockRecorder) Request ¶
func (mr *MockIContextMockRecorder) Request() *gomock.Call
Request indicates an expected call of Request.
func (*MockIContextMockRecorder) Reset ¶
func (mr *MockIContextMockRecorder) Reset(arg0, arg1, arg2 interface{}) *gomock.Call
Reset indicates an expected call of Reset.
func (*MockIContextMockRecorder) Response ¶
func (mr *MockIContextMockRecorder) Response() *gomock.Call
Response indicates an expected call of Response.
type MockIModel ¶
type MockIModel struct {
// contains filtered or unexported fields
}
MockIModel is a mock of IModel interface.
func NewMockIModel ¶
func NewMockIModel(ctrl *gomock.Controller) *MockIModel
NewMockIModel creates a new mock instance.
func (*MockIModel) EXPECT ¶
func (m *MockIModel) EXPECT() *MockIModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIModel) MapFromByFieldName ¶
func (m *MockIModel) MapFromByFieldName(src interface{}) interfaces.IModel
MapFromByFieldName mocks base method.
func (*MockIModel) MapFromByFieldTag ¶
func (m *MockIModel) MapFromByFieldTag(src interface{}) interfaces.IModel
MapFromByFieldTag mocks base method.
func (*MockIModel) MapToByFieldName ¶
func (m *MockIModel) MapToByFieldName(dest interface{}) interfaces.IModel
MapToByFieldName mocks base method.
func (*MockIModel) MapToByFieldTag ¶
func (m *MockIModel) MapToByFieldTag(dest interface{}) interfaces.IModel
MapToByFieldTag mocks base method.
func (*MockIModel) ModelError ¶
func (m *MockIModel) ModelError() error
ModelError mocks base method.
func (*MockIModel) New ¶
func (m *MockIModel) New(model interface{}) interfaces.IModel
New mocks base method.
func (*MockIModel) Validate ¶
func (m *MockIModel) Validate() interfaces.IModel
Validate mocks base method.
type MockIModelMockRecorder ¶
type MockIModelMockRecorder struct {
// contains filtered or unexported fields
}
MockIModelMockRecorder is the mock recorder for MockIModel.
func (*MockIModelMockRecorder) MapFromByFieldName ¶
func (mr *MockIModelMockRecorder) MapFromByFieldName(src interface{}) *gomock.Call
MapFromByFieldName indicates an expected call of MapFromByFieldName.
func (*MockIModelMockRecorder) MapFromByFieldTag ¶
func (mr *MockIModelMockRecorder) MapFromByFieldTag(src interface{}) *gomock.Call
MapFromByFieldTag indicates an expected call of MapFromByFieldTag.
func (*MockIModelMockRecorder) MapToByFieldName ¶
func (mr *MockIModelMockRecorder) MapToByFieldName(dest interface{}) *gomock.Call
MapToByFieldName indicates an expected call of MapToByFieldName.
func (*MockIModelMockRecorder) MapToByFieldTag ¶
func (mr *MockIModelMockRecorder) MapToByFieldTag(dest interface{}) *gomock.Call
MapToByFieldTag indicates an expected call of MapToByFieldTag.
func (*MockIModelMockRecorder) ModelError ¶
func (mr *MockIModelMockRecorder) ModelError() *gomock.Call
ModelError indicates an expected call of ModelError.
func (*MockIModelMockRecorder) New ¶
func (mr *MockIModelMockRecorder) New(model interface{}) *gomock.Call
New indicates an expected call of New.
func (*MockIModelMockRecorder) Validate ¶
func (mr *MockIModelMockRecorder) Validate() *gomock.Call
Validate indicates an expected call of Validate.
type MockIRequest ¶
type MockIRequest struct {
// contains filtered or unexported fields
}
MockIRequest is a mock of IRequest interface.
func NewMockIRequest ¶
func NewMockIRequest(ctrl *gomock.Controller) *MockIRequest
NewMockIRequest creates a new mock instance.
func (*MockIRequest) EXPECT ¶
func (m *MockIRequest) EXPECT() *MockIRequestMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIRequest) Param ¶
func (m *MockIRequest) Param(arg0 string) string
Param mocks base method.
func (*MockIRequest) PostForm ¶
func (m *MockIRequest) PostForm(key string) string
PostForm mocks base method.
func (*MockIRequest) Query ¶
func (m *MockIRequest) Query(key string) string
Query mocks base method.
func (*MockIRequest) SetParams ¶
func (m *MockIRequest) SetParams(arg0 map[string]string)
SetParams mocks base method.
type MockIRequestMockRecorder ¶
type MockIRequestMockRecorder struct {
// contains filtered or unexported fields
}
MockIRequestMockRecorder is the mock recorder for MockIRequest.
func (*MockIRequestMockRecorder) Body ¶
func (mr *MockIRequestMockRecorder) Body() *gomock.Call
Body indicates an expected call of Body.
func (*MockIRequestMockRecorder) Method ¶
func (mr *MockIRequestMockRecorder) Method() *gomock.Call
Method indicates an expected call of Method.
func (*MockIRequestMockRecorder) Param ¶
func (mr *MockIRequestMockRecorder) Param(arg0 interface{}) *gomock.Call
Param indicates an expected call of Param.
func (*MockIRequestMockRecorder) Path ¶
func (mr *MockIRequestMockRecorder) Path() *gomock.Call
Path indicates an expected call of Path.
func (*MockIRequestMockRecorder) PostForm ¶
func (mr *MockIRequestMockRecorder) PostForm(key interface{}) *gomock.Call
PostForm indicates an expected call of PostForm.
func (*MockIRequestMockRecorder) Query ¶
func (mr *MockIRequestMockRecorder) Query(key interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockIRequestMockRecorder) SetParams ¶
func (mr *MockIRequestMockRecorder) SetParams(arg0 interface{}) *gomock.Call
SetParams indicates an expected call of SetParams.
type MockIResponse ¶
type MockIResponse struct {
// contains filtered or unexported fields
}
MockIResponse is a mock of IResponse interface.
func NewMockIResponse ¶
func NewMockIResponse(ctrl *gomock.Controller) *MockIResponse
NewMockIResponse creates a new mock instance.
func (*MockIResponse) Data ¶
func (m *MockIResponse) Data(code int, data []byte)
Data mocks base method.
func (*MockIResponse) EXPECT ¶
func (m *MockIResponse) EXPECT() *MockIResponseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIResponse) HTML ¶
func (m *MockIResponse) HTML(code int, html string)
HTML mocks base method.
func (*MockIResponse) Header ¶
func (m *MockIResponse) Header(key, value string)
Header mocks base method.
func (*MockIResponse) JSON ¶
func (m *MockIResponse) JSON(code int, obj interface{})
JSON mocks base method.
func (*MockIResponse) String ¶
func (m *MockIResponse) String(code int, format string, values ...interface{})
String mocks base method.
type MockIResponseMockRecorder ¶
type MockIResponseMockRecorder struct {
// contains filtered or unexported fields
}
MockIResponseMockRecorder is the mock recorder for MockIResponse.
func (*MockIResponseMockRecorder) Data ¶
func (mr *MockIResponseMockRecorder) Data(code, data interface{}) *gomock.Call
Data indicates an expected call of Data.
func (*MockIResponseMockRecorder) HTML ¶
func (mr *MockIResponseMockRecorder) HTML(code, html interface{}) *gomock.Call
HTML indicates an expected call of HTML.
func (*MockIResponseMockRecorder) Header ¶
func (mr *MockIResponseMockRecorder) Header(key, value interface{}) *gomock.Call
Header indicates an expected call of Header.
func (*MockIResponseMockRecorder) JSON ¶
func (mr *MockIResponseMockRecorder) JSON(code, obj interface{}) *gomock.Call
JSON indicates an expected call of JSON.
func (*MockIResponseMockRecorder) Status ¶
func (mr *MockIResponseMockRecorder) Status(code interface{}) *gomock.Call
Status indicates an expected call of Status.
func (*MockIResponseMockRecorder) String ¶
func (mr *MockIResponseMockRecorder) String(code, format interface{}, values ...interface{}) *gomock.Call
String indicates an expected call of String.