controller

package
v0.0.0-...-7d6db92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_controller is a generated GoMock package.

Index

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 IArticleController interface {
	Index(c *fiber.Ctx) error
	Show(c *fiber.Ctx) error
	Store(c *fiber.Ctx) error
	Update(c *fiber.Ctx) error
	Destroy(c *fiber.Ctx) error
}

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

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.

func (*MockIArticleController) Store

func (m *MockIArticleController) Store(c *fiber.Ctx) error

Store mocks base method.

func (*MockIArticleController) Update

func (m *MockIArticleController) Update(c *fiber.Ctx) error

Update 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL