Documentation ¶
Index ¶
- type MockContext
- func (_m *MockContext) Abort()
- func (_m *MockContext) BindJSON(_param0 interface{}) errors.Error
- func (_m *MockContext) Cookie(_param0 string) (string, error)
- func (_m *MockContext) DeleteCookie(_param0 string)
- func (_m *MockContext) EXPECT() *_MockContextRecorder
- func (_m *MockContext) GetQuery(_param0 string) (string, bool)
- func (_m *MockContext) GetString(_param0 string) (string, bool)
- func (_m *MockContext) Next()
- func (_m *MockContext) Param(_param0 string) string
- func (_m *MockContext) Set(_param0 string, _param1 interface{})
- func (_m *MockContext) SetCookie(_param0 *http.Cookie)
- func (_m *MockContext) ShouldGetString(_param0 string) (string, errors.Error)
- type MockJsonResponse
- func (_m *MockJsonResponse) EXPECT() *_MockJsonResponseRecorder
- func (_m *MockJsonResponse) SetData(_param0 interface{})
- func (_m *MockJsonResponse) SetError(_param0 errors.Error)
- func (_m *MockJsonResponse) SetMessage(_param0 string)
- func (_m *MockJsonResponse) SetStatus(_param0 int)
- func (_m *MockJsonResponse) WriteJSON(_param0 *gin_v1.Context)
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
}
Mock of Context interface
func NewMockContext ¶
func NewMockContext(ctrl *gomock.Controller) *MockContext
func (*MockContext) Abort ¶
func (_m *MockContext) Abort()
func (*MockContext) BindJSON ¶
func (_m *MockContext) BindJSON(_param0 interface{}) errors.Error
func (*MockContext) DeleteCookie ¶
func (_m *MockContext) DeleteCookie(_param0 string)
func (*MockContext) EXPECT ¶
func (_m *MockContext) EXPECT() *_MockContextRecorder
func (*MockContext) Next ¶
func (_m *MockContext) Next()
func (*MockContext) Param ¶
func (_m *MockContext) Param(_param0 string) string
func (*MockContext) Set ¶
func (_m *MockContext) Set(_param0 string, _param1 interface{})
func (*MockContext) SetCookie ¶
func (_m *MockContext) SetCookie(_param0 *http.Cookie)
func (*MockContext) ShouldGetString ¶
func (_m *MockContext) ShouldGetString(_param0 string) (string, errors.Error)
type MockJsonResponse ¶
type MockJsonResponse struct {
// contains filtered or unexported fields
}
Mock of JsonResponse interface
func NewMockJsonResponse ¶
func NewMockJsonResponse(ctrl *gomock.Controller) *MockJsonResponse
func (*MockJsonResponse) EXPECT ¶
func (_m *MockJsonResponse) EXPECT() *_MockJsonResponseRecorder
func (*MockJsonResponse) SetData ¶
func (_m *MockJsonResponse) SetData(_param0 interface{})
func (*MockJsonResponse) SetError ¶
func (_m *MockJsonResponse) SetError(_param0 errors.Error)
func (*MockJsonResponse) SetMessage ¶
func (_m *MockJsonResponse) SetMessage(_param0 string)
func (*MockJsonResponse) SetStatus ¶
func (_m *MockJsonResponse) SetStatus(_param0 int)
func (*MockJsonResponse) WriteJSON ¶
func (_m *MockJsonResponse) WriteJSON(_param0 *gin_v1.Context)
Click to show internal directories.
Click to hide internal directories.