Documentation
¶
Overview ¶
Package mock_controller is a generated GoMock package.
Index ¶
- type ArticleController
- type Controller
- type IArticleController
- type MockIArticleController
- func (m *MockIArticleController) Destroy(c *fiber.Ctx) error
- func (m *MockIArticleController) EXPECT() *MockIArticleControllerMockRecorder
- func (m *MockIArticleController) Index(c *fiber.Ctx) error
- func (m *MockIArticleController) Show(c *fiber.Ctx) error
- func (m *MockIArticleController) Store(c *fiber.Ctx) error
- func (m *MockIArticleController) Update(c *fiber.Ctx) error
- type MockIArticleControllerMockRecorder
- func (mr *MockIArticleControllerMockRecorder) Destroy(c interface{}) *gomock.Call
- func (mr *MockIArticleControllerMockRecorder) Index(c interface{}) *gomock.Call
- func (mr *MockIArticleControllerMockRecorder) Show(c interface{}) *gomock.Call
- func (mr *MockIArticleControllerMockRecorder) Store(c interface{}) *gomock.Call
- func (mr *MockIArticleControllerMockRecorder) Update(c interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleController ¶
type ArticleController struct {
// contains filtered or unexported fields
}
func NewArticleController ¶
func NewArticleController(articleService *service.ArticleService) *ArticleController
func (*ArticleController) Destroy ¶
func (con *ArticleController) Destroy(c *fiber.Ctx) error
func (*ArticleController) Index ¶
func (con *ArticleController) Index(c *fiber.Ctx) error
func (*ArticleController) Show ¶
func (con *ArticleController) Show(c *fiber.Ctx) error
func (*ArticleController) Store ¶
func (con *ArticleController) Store(c *fiber.Ctx) error
func (*ArticleController) Update ¶
func (con *ArticleController) Update(c *fiber.Ctx) error
type Controller ¶
type Controller struct {
Article *ArticleController
}
func NewController ¶
func NewController(articleService *service.ArticleService) *Controller
type IArticleController ¶
type MockIArticleController ¶
type MockIArticleController struct {
// contains filtered or unexported fields
}
MockIArticleController is a mock of IArticleController interface.
func NewMockIArticleController ¶
func NewMockIArticleController(ctrl *gomock.Controller) *MockIArticleController
NewMockIArticleController creates a new mock instance.
func (*MockIArticleController) Destroy ¶
func (m *MockIArticleController) Destroy(c *fiber.Ctx) error
Destroy mocks base method.
func (*MockIArticleController) EXPECT ¶
func (m *MockIArticleController) EXPECT() *MockIArticleControllerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIArticleController) Index ¶
func (m *MockIArticleController) Index(c *fiber.Ctx) error
Index mocks base method.
func (*MockIArticleController) Show ¶
func (m *MockIArticleController) Show(c *fiber.Ctx) error
Show mocks base method.
type MockIArticleControllerMockRecorder ¶
type MockIArticleControllerMockRecorder struct {
// contains filtered or unexported fields
}
MockIArticleControllerMockRecorder is the mock recorder for MockIArticleController.
func (*MockIArticleControllerMockRecorder) Destroy ¶
func (mr *MockIArticleControllerMockRecorder) Destroy(c interface{}) *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockIArticleControllerMockRecorder) Index ¶
func (mr *MockIArticleControllerMockRecorder) Index(c interface{}) *gomock.Call
Index indicates an expected call of Index.
func (*MockIArticleControllerMockRecorder) Show ¶
func (mr *MockIArticleControllerMockRecorder) Show(c interface{}) *gomock.Call
Show indicates an expected call of Show.
func (*MockIArticleControllerMockRecorder) Store ¶
func (mr *MockIArticleControllerMockRecorder) Store(c interface{}) *gomock.Call
Store indicates an expected call of Store.
func (*MockIArticleControllerMockRecorder) Update ¶
func (mr *MockIArticleControllerMockRecorder) Update(c interface{}) *gomock.Call
Update indicates an expected call of Update.