Documentation ¶
Index ¶
- type BaseCreateHandler
- type BaseCreateHandler_Expecter
- type BaseCreateHandler_GetCreateInput_Call
- func (_c *BaseCreateHandler_GetCreateInput_Call) Return(_a0 interface{}) *BaseCreateHandler_GetCreateInput_Call
- func (_c *BaseCreateHandler_GetCreateInput_Call) Run(run func()) *BaseCreateHandler_GetCreateInput_Call
- func (_c *BaseCreateHandler_GetCreateInput_Call) RunAndReturn(run func() interface{}) *BaseCreateHandler_GetCreateInput_Call
- type BaseCreateHandler_TransformCreate_Call
- func (_c *BaseCreateHandler_TransformCreate_Call) Return(err error) *BaseCreateHandler_TransformCreate_Call
- func (_c *BaseCreateHandler_TransformCreate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *BaseCreateHandler_TransformCreate_Call
- func (_c *BaseCreateHandler_TransformCreate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *BaseCreateHandler_TransformCreate_Call
- type BaseHandler
- type BaseHandler_Expecter
- type BaseHandler_GetModel_Call
- type BaseHandler_GetRepository_Call
- func (_c *BaseHandler_GetRepository_Call) Return(_a0 crud.Repository) *BaseHandler_GetRepository_Call
- func (_c *BaseHandler_GetRepository_Call) Run(run func()) *BaseHandler_GetRepository_Call
- func (_c *BaseHandler_GetRepository_Call) RunAndReturn(run func() crud.Repository) *BaseHandler_GetRepository_Call
- type BaseHandler_TransformOutput_Call
- func (_c *BaseHandler_TransformOutput_Call) Return(output interface{}, err error) *BaseHandler_TransformOutput_Call
- func (_c *BaseHandler_TransformOutput_Call) Run(run func(ctx context.Context, model db_repo.ModelBased, apiView string)) *BaseHandler_TransformOutput_Call
- func (_c *BaseHandler_TransformOutput_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased, string) (interface{}, error)) *BaseHandler_TransformOutput_Call
- type BaseListHandler
- type BaseListHandler_Expecter
- type BaseListHandler_List_Call
- func (_c *BaseListHandler_List_Call) Return(out interface{}, err error) *BaseListHandler_List_Call
- func (_c *BaseListHandler_List_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, apiView string)) *BaseListHandler_List_Call
- func (_c *BaseListHandler_List_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, string) (interface{}, error)) *BaseListHandler_List_Call
- type BaseUpdateHandler
- type BaseUpdateHandler_Expecter
- type BaseUpdateHandler_GetUpdateInput_Call
- func (_c *BaseUpdateHandler_GetUpdateInput_Call) Return(_a0 interface{}) *BaseUpdateHandler_GetUpdateInput_Call
- func (_c *BaseUpdateHandler_GetUpdateInput_Call) Run(run func()) *BaseUpdateHandler_GetUpdateInput_Call
- func (_c *BaseUpdateHandler_GetUpdateInput_Call) RunAndReturn(run func() interface{}) *BaseUpdateHandler_GetUpdateInput_Call
- type BaseUpdateHandler_TransformUpdate_Call
- func (_c *BaseUpdateHandler_TransformUpdate_Call) Return(err error) *BaseUpdateHandler_TransformUpdate_Call
- func (_c *BaseUpdateHandler_TransformUpdate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *BaseUpdateHandler_TransformUpdate_Call
- func (_c *BaseUpdateHandler_TransformUpdate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *BaseUpdateHandler_TransformUpdate_Call
- type CreateHandler
- func (_m *CreateHandler) EXPECT() *CreateHandler_Expecter
- func (_m *CreateHandler) GetCreateInput() interface{}
- func (_m *CreateHandler) GetModel() db_repo.ModelBased
- func (_m *CreateHandler) GetRepository() crud.Repository
- func (_m *CreateHandler) TransformCreate(ctx context.Context, input interface{}, model db_repo.ModelBased) error
- func (_m *CreateHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)
- type CreateHandler_Expecter
- func (_e *CreateHandler_Expecter) GetCreateInput() *CreateHandler_GetCreateInput_Call
- func (_e *CreateHandler_Expecter) GetModel() *CreateHandler_GetModel_Call
- func (_e *CreateHandler_Expecter) GetRepository() *CreateHandler_GetRepository_Call
- func (_e *CreateHandler_Expecter) TransformCreate(ctx interface{}, input interface{}, model interface{}) *CreateHandler_TransformCreate_Call
- func (_e *CreateHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *CreateHandler_TransformOutput_Call
- type CreateHandler_GetCreateInput_Call
- func (_c *CreateHandler_GetCreateInput_Call) Return(_a0 interface{}) *CreateHandler_GetCreateInput_Call
- func (_c *CreateHandler_GetCreateInput_Call) Run(run func()) *CreateHandler_GetCreateInput_Call
- func (_c *CreateHandler_GetCreateInput_Call) RunAndReturn(run func() interface{}) *CreateHandler_GetCreateInput_Call
- type CreateHandler_GetModel_Call
- type CreateHandler_GetRepository_Call
- func (_c *CreateHandler_GetRepository_Call) Return(_a0 crud.Repository) *CreateHandler_GetRepository_Call
- func (_c *CreateHandler_GetRepository_Call) Run(run func()) *CreateHandler_GetRepository_Call
- func (_c *CreateHandler_GetRepository_Call) RunAndReturn(run func() crud.Repository) *CreateHandler_GetRepository_Call
- type CreateHandler_TransformCreate_Call
- func (_c *CreateHandler_TransformCreate_Call) Return(err error) *CreateHandler_TransformCreate_Call
- func (_c *CreateHandler_TransformCreate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *CreateHandler_TransformCreate_Call
- func (_c *CreateHandler_TransformCreate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *CreateHandler_TransformCreate_Call
- type CreateHandler_TransformOutput_Call
- func (_c *CreateHandler_TransformOutput_Call) Return(output interface{}, err error) *CreateHandler_TransformOutput_Call
- func (_c *CreateHandler_TransformOutput_Call) Run(run func(ctx context.Context, model db_repo.ModelBased, apiView string)) *CreateHandler_TransformOutput_Call
- func (_c *CreateHandler_TransformOutput_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased, string) (interface{}, error)) *CreateHandler_TransformOutput_Call
- type Handler
- func (_m *Handler) EXPECT() *Handler_Expecter
- func (_m *Handler) GetCreateInput() interface{}
- func (_m *Handler) GetModel() db_repo.ModelBased
- func (_m *Handler) GetRepository() crud.Repository
- func (_m *Handler) GetUpdateInput() interface{}
- func (_m *Handler) List(ctx context.Context, qb *db_repo.QueryBuilder, apiView string) (interface{}, error)
- func (_m *Handler) TransformCreate(ctx context.Context, input interface{}, model db_repo.ModelBased) error
- func (_m *Handler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)
- func (_m *Handler) TransformUpdate(ctx context.Context, input interface{}, model db_repo.ModelBased) error
- type Handler_Expecter
- func (_e *Handler_Expecter) GetCreateInput() *Handler_GetCreateInput_Call
- func (_e *Handler_Expecter) GetModel() *Handler_GetModel_Call
- func (_e *Handler_Expecter) GetRepository() *Handler_GetRepository_Call
- func (_e *Handler_Expecter) GetUpdateInput() *Handler_GetUpdateInput_Call
- func (_e *Handler_Expecter) List(ctx interface{}, qb interface{}, apiView interface{}) *Handler_List_Call
- func (_e *Handler_Expecter) TransformCreate(ctx interface{}, input interface{}, model interface{}) *Handler_TransformCreate_Call
- func (_e *Handler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *Handler_TransformOutput_Call
- func (_e *Handler_Expecter) TransformUpdate(ctx interface{}, input interface{}, model interface{}) *Handler_TransformUpdate_Call
- type Handler_GetCreateInput_Call
- type Handler_GetModel_Call
- type Handler_GetRepository_Call
- type Handler_GetUpdateInput_Call
- type Handler_List_Call
- func (_c *Handler_List_Call) Return(out interface{}, err error) *Handler_List_Call
- func (_c *Handler_List_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, apiView string)) *Handler_List_Call
- func (_c *Handler_List_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, string) (interface{}, error)) *Handler_List_Call
- type Handler_TransformCreate_Call
- func (_c *Handler_TransformCreate_Call) Return(err error) *Handler_TransformCreate_Call
- func (_c *Handler_TransformCreate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *Handler_TransformCreate_Call
- func (_c *Handler_TransformCreate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *Handler_TransformCreate_Call
- type Handler_TransformOutput_Call
- func (_c *Handler_TransformOutput_Call) Return(output interface{}, err error) *Handler_TransformOutput_Call
- func (_c *Handler_TransformOutput_Call) Run(run func(ctx context.Context, model db_repo.ModelBased, apiView string)) *Handler_TransformOutput_Call
- func (_c *Handler_TransformOutput_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased, string) (interface{}, error)) *Handler_TransformOutput_Call
- type Handler_TransformUpdate_Call
- func (_c *Handler_TransformUpdate_Call) Return(err error) *Handler_TransformUpdate_Call
- func (_c *Handler_TransformUpdate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *Handler_TransformUpdate_Call
- func (_c *Handler_TransformUpdate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *Handler_TransformUpdate_Call
- type ListHandler
- func (_m *ListHandler) EXPECT() *ListHandler_Expecter
- func (_m *ListHandler) GetModel() db_repo.ModelBased
- func (_m *ListHandler) GetRepository() crud.Repository
- func (_m *ListHandler) List(ctx context.Context, qb *db_repo.QueryBuilder, apiView string) (interface{}, error)
- func (_m *ListHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)
- type ListHandler_Expecter
- func (_e *ListHandler_Expecter) GetModel() *ListHandler_GetModel_Call
- func (_e *ListHandler_Expecter) GetRepository() *ListHandler_GetRepository_Call
- func (_e *ListHandler_Expecter) List(ctx interface{}, qb interface{}, apiView interface{}) *ListHandler_List_Call
- func (_e *ListHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *ListHandler_TransformOutput_Call
- type ListHandler_GetModel_Call
- type ListHandler_GetRepository_Call
- func (_c *ListHandler_GetRepository_Call) Return(_a0 crud.Repository) *ListHandler_GetRepository_Call
- func (_c *ListHandler_GetRepository_Call) Run(run func()) *ListHandler_GetRepository_Call
- func (_c *ListHandler_GetRepository_Call) RunAndReturn(run func() crud.Repository) *ListHandler_GetRepository_Call
- type ListHandler_List_Call
- func (_c *ListHandler_List_Call) Return(out interface{}, err error) *ListHandler_List_Call
- func (_c *ListHandler_List_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, apiView string)) *ListHandler_List_Call
- func (_c *ListHandler_List_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, string) (interface{}, error)) *ListHandler_List_Call
- type ListHandler_TransformOutput_Call
- func (_c *ListHandler_TransformOutput_Call) Return(output interface{}, err error) *ListHandler_TransformOutput_Call
- func (_c *ListHandler_TransformOutput_Call) Run(run func(ctx context.Context, model db_repo.ModelBased, apiView string)) *ListHandler_TransformOutput_Call
- func (_c *ListHandler_TransformOutput_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased, string) (interface{}, error)) *ListHandler_TransformOutput_Call
- type Repository
- func (_m *Repository) Count(ctx context.Context, qb *db_repo.QueryBuilder, model db_repo.ModelBased) (int, error)
- func (_m *Repository) Create(ctx context.Context, value db_repo.ModelBased) error
- func (_m *Repository) Delete(ctx context.Context, value db_repo.ModelBased) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) GetMetadata() db_repo.Metadata
- func (_m *Repository) Query(ctx context.Context, qb *db_repo.QueryBuilder, result interface{}) error
- func (_m *Repository) Read(ctx context.Context, id *uint, out db_repo.ModelBased) error
- func (_m *Repository) Update(ctx context.Context, value db_repo.ModelBased) error
- type Repository_Count_Call
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(ctx context.Context, value db_repo.ModelBased)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased) error) *Repository_Create_Call
- type Repository_Delete_Call
- func (_c *Repository_Delete_Call) Return(_a0 error) *Repository_Delete_Call
- func (_c *Repository_Delete_Call) Run(run func(ctx context.Context, value db_repo.ModelBased)) *Repository_Delete_Call
- func (_c *Repository_Delete_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased) error) *Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) Count(ctx interface{}, qb interface{}, model interface{}) *Repository_Count_Call
- func (_e *Repository_Expecter) Create(ctx interface{}, value interface{}) *Repository_Create_Call
- func (_e *Repository_Expecter) Delete(ctx interface{}, value interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) GetMetadata() *Repository_GetMetadata_Call
- func (_e *Repository_Expecter) Query(ctx interface{}, qb interface{}, result interface{}) *Repository_Query_Call
- func (_e *Repository_Expecter) Read(ctx interface{}, id interface{}, out interface{}) *Repository_Read_Call
- func (_e *Repository_Expecter) Update(ctx interface{}, value interface{}) *Repository_Update_Call
- type Repository_GetMetadata_Call
- type Repository_Query_Call
- func (_c *Repository_Query_Call) Return(_a0 error) *Repository_Query_Call
- func (_c *Repository_Query_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, result interface{})) *Repository_Query_Call
- func (_c *Repository_Query_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, interface{}) error) *Repository_Query_Call
- type Repository_Read_Call
- func (_c *Repository_Read_Call) Return(_a0 error) *Repository_Read_Call
- func (_c *Repository_Read_Call) Run(run func(ctx context.Context, id *uint, out db_repo.ModelBased)) *Repository_Read_Call
- func (_c *Repository_Read_Call) RunAndReturn(run func(context.Context, *uint, db_repo.ModelBased) error) *Repository_Read_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(ctx context.Context, value db_repo.ModelBased)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased) error) *Repository_Update_Call
- type UpdateHandler
- func (_m *UpdateHandler) EXPECT() *UpdateHandler_Expecter
- func (_m *UpdateHandler) GetModel() db_repo.ModelBased
- func (_m *UpdateHandler) GetRepository() crud.Repository
- func (_m *UpdateHandler) GetUpdateInput() interface{}
- func (_m *UpdateHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)
- func (_m *UpdateHandler) TransformUpdate(ctx context.Context, input interface{}, model db_repo.ModelBased) error
- type UpdateHandler_Expecter
- func (_e *UpdateHandler_Expecter) GetModel() *UpdateHandler_GetModel_Call
- func (_e *UpdateHandler_Expecter) GetRepository() *UpdateHandler_GetRepository_Call
- func (_e *UpdateHandler_Expecter) GetUpdateInput() *UpdateHandler_GetUpdateInput_Call
- func (_e *UpdateHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *UpdateHandler_TransformOutput_Call
- func (_e *UpdateHandler_Expecter) TransformUpdate(ctx interface{}, input interface{}, model interface{}) *UpdateHandler_TransformUpdate_Call
- type UpdateHandler_GetModel_Call
- type UpdateHandler_GetRepository_Call
- func (_c *UpdateHandler_GetRepository_Call) Return(_a0 crud.Repository) *UpdateHandler_GetRepository_Call
- func (_c *UpdateHandler_GetRepository_Call) Run(run func()) *UpdateHandler_GetRepository_Call
- func (_c *UpdateHandler_GetRepository_Call) RunAndReturn(run func() crud.Repository) *UpdateHandler_GetRepository_Call
- type UpdateHandler_GetUpdateInput_Call
- func (_c *UpdateHandler_GetUpdateInput_Call) Return(_a0 interface{}) *UpdateHandler_GetUpdateInput_Call
- func (_c *UpdateHandler_GetUpdateInput_Call) Run(run func()) *UpdateHandler_GetUpdateInput_Call
- func (_c *UpdateHandler_GetUpdateInput_Call) RunAndReturn(run func() interface{}) *UpdateHandler_GetUpdateInput_Call
- type UpdateHandler_TransformOutput_Call
- func (_c *UpdateHandler_TransformOutput_Call) Return(output interface{}, err error) *UpdateHandler_TransformOutput_Call
- func (_c *UpdateHandler_TransformOutput_Call) Run(run func(ctx context.Context, model db_repo.ModelBased, apiView string)) *UpdateHandler_TransformOutput_Call
- func (_c *UpdateHandler_TransformOutput_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased, string) (interface{}, error)) *UpdateHandler_TransformOutput_Call
- type UpdateHandler_TransformUpdate_Call
- func (_c *UpdateHandler_TransformUpdate_Call) Return(err error) *UpdateHandler_TransformUpdate_Call
- func (_c *UpdateHandler_TransformUpdate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *UpdateHandler_TransformUpdate_Call
- func (_c *UpdateHandler_TransformUpdate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *UpdateHandler_TransformUpdate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCreateHandler ¶
BaseCreateHandler is an autogenerated mock type for the BaseCreateHandler type
func NewBaseCreateHandler ¶
func NewBaseCreateHandler(t mockConstructorTestingTNewBaseCreateHandler) *BaseCreateHandler
NewBaseCreateHandler creates a new instance of BaseCreateHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BaseCreateHandler) EXPECT ¶
func (_m *BaseCreateHandler) EXPECT() *BaseCreateHandler_Expecter
func (*BaseCreateHandler) GetCreateInput ¶
func (_m *BaseCreateHandler) GetCreateInput() interface{}
GetCreateInput provides a mock function with given fields:
func (*BaseCreateHandler) TransformCreate ¶
func (_m *BaseCreateHandler) TransformCreate(ctx context.Context, input interface{}, model db_repo.ModelBased) error
TransformCreate provides a mock function with given fields: ctx, input, model
type BaseCreateHandler_Expecter ¶
type BaseCreateHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*BaseCreateHandler_Expecter) GetCreateInput ¶
func (_e *BaseCreateHandler_Expecter) GetCreateInput() *BaseCreateHandler_GetCreateInput_Call
GetCreateInput is a helper method to define mock.On call
func (*BaseCreateHandler_Expecter) TransformCreate ¶
func (_e *BaseCreateHandler_Expecter) TransformCreate(ctx interface{}, input interface{}, model interface{}) *BaseCreateHandler_TransformCreate_Call
TransformCreate is a helper method to define mock.On call
- ctx context.Context
- input interface{}
- model db_repo.ModelBased
type BaseCreateHandler_GetCreateInput_Call ¶
BaseCreateHandler_GetCreateInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCreateInput'
func (*BaseCreateHandler_GetCreateInput_Call) Return ¶
func (_c *BaseCreateHandler_GetCreateInput_Call) Return(_a0 interface{}) *BaseCreateHandler_GetCreateInput_Call
func (*BaseCreateHandler_GetCreateInput_Call) Run ¶
func (_c *BaseCreateHandler_GetCreateInput_Call) Run(run func()) *BaseCreateHandler_GetCreateInput_Call
func (*BaseCreateHandler_GetCreateInput_Call) RunAndReturn ¶
func (_c *BaseCreateHandler_GetCreateInput_Call) RunAndReturn(run func() interface{}) *BaseCreateHandler_GetCreateInput_Call
type BaseCreateHandler_TransformCreate_Call ¶
BaseCreateHandler_TransformCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformCreate'
func (*BaseCreateHandler_TransformCreate_Call) Return ¶
func (_c *BaseCreateHandler_TransformCreate_Call) Return(err error) *BaseCreateHandler_TransformCreate_Call
func (*BaseCreateHandler_TransformCreate_Call) Run ¶
func (_c *BaseCreateHandler_TransformCreate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *BaseCreateHandler_TransformCreate_Call
func (*BaseCreateHandler_TransformCreate_Call) RunAndReturn ¶
func (_c *BaseCreateHandler_TransformCreate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *BaseCreateHandler_TransformCreate_Call
type BaseHandler ¶
BaseHandler is an autogenerated mock type for the BaseHandler type
func NewBaseHandler ¶
func NewBaseHandler(t mockConstructorTestingTNewBaseHandler) *BaseHandler
NewBaseHandler creates a new instance of BaseHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BaseHandler) EXPECT ¶
func (_m *BaseHandler) EXPECT() *BaseHandler_Expecter
func (*BaseHandler) GetModel ¶
func (_m *BaseHandler) GetModel() db_repo.ModelBased
GetModel provides a mock function with given fields:
func (*BaseHandler) GetRepository ¶
func (_m *BaseHandler) GetRepository() crud.Repository
GetRepository provides a mock function with given fields:
func (*BaseHandler) TransformOutput ¶
func (_m *BaseHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)
TransformOutput provides a mock function with given fields: ctx, model, apiView
type BaseHandler_Expecter ¶
type BaseHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*BaseHandler_Expecter) GetModel ¶
func (_e *BaseHandler_Expecter) GetModel() *BaseHandler_GetModel_Call
GetModel is a helper method to define mock.On call
func (*BaseHandler_Expecter) GetRepository ¶
func (_e *BaseHandler_Expecter) GetRepository() *BaseHandler_GetRepository_Call
GetRepository is a helper method to define mock.On call
func (*BaseHandler_Expecter) TransformOutput ¶
func (_e *BaseHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *BaseHandler_TransformOutput_Call
TransformOutput is a helper method to define mock.On call
- ctx context.Context
- model db_repo.ModelBased
- apiView string
type BaseHandler_GetModel_Call ¶
BaseHandler_GetModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModel'
func (*BaseHandler_GetModel_Call) Return ¶
func (_c *BaseHandler_GetModel_Call) Return(_a0 db_repo.ModelBased) *BaseHandler_GetModel_Call
func (*BaseHandler_GetModel_Call) Run ¶
func (_c *BaseHandler_GetModel_Call) Run(run func()) *BaseHandler_GetModel_Call
func (*BaseHandler_GetModel_Call) RunAndReturn ¶
func (_c *BaseHandler_GetModel_Call) RunAndReturn(run func() db_repo.ModelBased) *BaseHandler_GetModel_Call
type BaseHandler_GetRepository_Call ¶
BaseHandler_GetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepository'
func (*BaseHandler_GetRepository_Call) Return ¶
func (_c *BaseHandler_GetRepository_Call) Return(_a0 crud.Repository) *BaseHandler_GetRepository_Call
func (*BaseHandler_GetRepository_Call) Run ¶
func (_c *BaseHandler_GetRepository_Call) Run(run func()) *BaseHandler_GetRepository_Call
func (*BaseHandler_GetRepository_Call) RunAndReturn ¶
func (_c *BaseHandler_GetRepository_Call) RunAndReturn(run func() crud.Repository) *BaseHandler_GetRepository_Call
type BaseHandler_TransformOutput_Call ¶
BaseHandler_TransformOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformOutput'
func (*BaseHandler_TransformOutput_Call) Return ¶
func (_c *BaseHandler_TransformOutput_Call) Return(output interface{}, err error) *BaseHandler_TransformOutput_Call
func (*BaseHandler_TransformOutput_Call) Run ¶
func (_c *BaseHandler_TransformOutput_Call) Run(run func(ctx context.Context, model db_repo.ModelBased, apiView string)) *BaseHandler_TransformOutput_Call
func (*BaseHandler_TransformOutput_Call) RunAndReturn ¶
func (_c *BaseHandler_TransformOutput_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased, string) (interface{}, error)) *BaseHandler_TransformOutput_Call
type BaseListHandler ¶
BaseListHandler is an autogenerated mock type for the BaseListHandler type
func NewBaseListHandler ¶
func NewBaseListHandler(t mockConstructorTestingTNewBaseListHandler) *BaseListHandler
NewBaseListHandler creates a new instance of BaseListHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BaseListHandler) EXPECT ¶
func (_m *BaseListHandler) EXPECT() *BaseListHandler_Expecter
func (*BaseListHandler) List ¶
func (_m *BaseListHandler) List(ctx context.Context, qb *db_repo.QueryBuilder, apiView string) (interface{}, error)
List provides a mock function with given fields: ctx, qb, apiView
type BaseListHandler_Expecter ¶
type BaseListHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*BaseListHandler_Expecter) List ¶
func (_e *BaseListHandler_Expecter) List(ctx interface{}, qb interface{}, apiView interface{}) *BaseListHandler_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- qb *db_repo.QueryBuilder
- apiView string
type BaseListHandler_List_Call ¶
BaseListHandler_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*BaseListHandler_List_Call) Return ¶
func (_c *BaseListHandler_List_Call) Return(out interface{}, err error) *BaseListHandler_List_Call
func (*BaseListHandler_List_Call) Run ¶
func (_c *BaseListHandler_List_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, apiView string)) *BaseListHandler_List_Call
func (*BaseListHandler_List_Call) RunAndReturn ¶
func (_c *BaseListHandler_List_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, string) (interface{}, error)) *BaseListHandler_List_Call
type BaseUpdateHandler ¶
BaseUpdateHandler is an autogenerated mock type for the BaseUpdateHandler type
func NewBaseUpdateHandler ¶
func NewBaseUpdateHandler(t mockConstructorTestingTNewBaseUpdateHandler) *BaseUpdateHandler
NewBaseUpdateHandler creates a new instance of BaseUpdateHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BaseUpdateHandler) EXPECT ¶
func (_m *BaseUpdateHandler) EXPECT() *BaseUpdateHandler_Expecter
func (*BaseUpdateHandler) GetUpdateInput ¶
func (_m *BaseUpdateHandler) GetUpdateInput() interface{}
GetUpdateInput provides a mock function with given fields:
func (*BaseUpdateHandler) TransformUpdate ¶
func (_m *BaseUpdateHandler) TransformUpdate(ctx context.Context, input interface{}, model db_repo.ModelBased) error
TransformUpdate provides a mock function with given fields: ctx, input, model
type BaseUpdateHandler_Expecter ¶
type BaseUpdateHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*BaseUpdateHandler_Expecter) GetUpdateInput ¶
func (_e *BaseUpdateHandler_Expecter) GetUpdateInput() *BaseUpdateHandler_GetUpdateInput_Call
GetUpdateInput is a helper method to define mock.On call
func (*BaseUpdateHandler_Expecter) TransformUpdate ¶
func (_e *BaseUpdateHandler_Expecter) TransformUpdate(ctx interface{}, input interface{}, model interface{}) *BaseUpdateHandler_TransformUpdate_Call
TransformUpdate is a helper method to define mock.On call
- ctx context.Context
- input interface{}
- model db_repo.ModelBased
type BaseUpdateHandler_GetUpdateInput_Call ¶
BaseUpdateHandler_GetUpdateInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUpdateInput'
func (*BaseUpdateHandler_GetUpdateInput_Call) Return ¶
func (_c *BaseUpdateHandler_GetUpdateInput_Call) Return(_a0 interface{}) *BaseUpdateHandler_GetUpdateInput_Call
func (*BaseUpdateHandler_GetUpdateInput_Call) Run ¶
func (_c *BaseUpdateHandler_GetUpdateInput_Call) Run(run func()) *BaseUpdateHandler_GetUpdateInput_Call
func (*BaseUpdateHandler_GetUpdateInput_Call) RunAndReturn ¶
func (_c *BaseUpdateHandler_GetUpdateInput_Call) RunAndReturn(run func() interface{}) *BaseUpdateHandler_GetUpdateInput_Call
type BaseUpdateHandler_TransformUpdate_Call ¶
BaseUpdateHandler_TransformUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformUpdate'
func (*BaseUpdateHandler_TransformUpdate_Call) Return ¶
func (_c *BaseUpdateHandler_TransformUpdate_Call) Return(err error) *BaseUpdateHandler_TransformUpdate_Call
func (*BaseUpdateHandler_TransformUpdate_Call) Run ¶
func (_c *BaseUpdateHandler_TransformUpdate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *BaseUpdateHandler_TransformUpdate_Call
func (*BaseUpdateHandler_TransformUpdate_Call) RunAndReturn ¶
func (_c *BaseUpdateHandler_TransformUpdate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *BaseUpdateHandler_TransformUpdate_Call
type CreateHandler ¶
CreateHandler is an autogenerated mock type for the CreateHandler type
func NewCreateHandler ¶
func NewCreateHandler(t mockConstructorTestingTNewCreateHandler) *CreateHandler
NewCreateHandler creates a new instance of CreateHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CreateHandler) EXPECT ¶
func (_m *CreateHandler) EXPECT() *CreateHandler_Expecter
func (*CreateHandler) GetCreateInput ¶
func (_m *CreateHandler) GetCreateInput() interface{}
GetCreateInput provides a mock function with given fields:
func (*CreateHandler) GetModel ¶
func (_m *CreateHandler) GetModel() db_repo.ModelBased
GetModel provides a mock function with given fields:
func (*CreateHandler) GetRepository ¶
func (_m *CreateHandler) GetRepository() crud.Repository
GetRepository provides a mock function with given fields:
func (*CreateHandler) TransformCreate ¶
func (_m *CreateHandler) TransformCreate(ctx context.Context, input interface{}, model db_repo.ModelBased) error
TransformCreate provides a mock function with given fields: ctx, input, model
func (*CreateHandler) TransformOutput ¶
func (_m *CreateHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)
TransformOutput provides a mock function with given fields: ctx, model, apiView
type CreateHandler_Expecter ¶
type CreateHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*CreateHandler_Expecter) GetCreateInput ¶
func (_e *CreateHandler_Expecter) GetCreateInput() *CreateHandler_GetCreateInput_Call
GetCreateInput is a helper method to define mock.On call
func (*CreateHandler_Expecter) GetModel ¶
func (_e *CreateHandler_Expecter) GetModel() *CreateHandler_GetModel_Call
GetModel is a helper method to define mock.On call
func (*CreateHandler_Expecter) GetRepository ¶
func (_e *CreateHandler_Expecter) GetRepository() *CreateHandler_GetRepository_Call
GetRepository is a helper method to define mock.On call
func (*CreateHandler_Expecter) TransformCreate ¶
func (_e *CreateHandler_Expecter) TransformCreate(ctx interface{}, input interface{}, model interface{}) *CreateHandler_TransformCreate_Call
TransformCreate is a helper method to define mock.On call
- ctx context.Context
- input interface{}
- model db_repo.ModelBased
func (*CreateHandler_Expecter) TransformOutput ¶
func (_e *CreateHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *CreateHandler_TransformOutput_Call
TransformOutput is a helper method to define mock.On call
- ctx context.Context
- model db_repo.ModelBased
- apiView string
type CreateHandler_GetCreateInput_Call ¶
CreateHandler_GetCreateInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCreateInput'
func (*CreateHandler_GetCreateInput_Call) Return ¶
func (_c *CreateHandler_GetCreateInput_Call) Return(_a0 interface{}) *CreateHandler_GetCreateInput_Call
func (*CreateHandler_GetCreateInput_Call) Run ¶
func (_c *CreateHandler_GetCreateInput_Call) Run(run func()) *CreateHandler_GetCreateInput_Call
func (*CreateHandler_GetCreateInput_Call) RunAndReturn ¶
func (_c *CreateHandler_GetCreateInput_Call) RunAndReturn(run func() interface{}) *CreateHandler_GetCreateInput_Call
type CreateHandler_GetModel_Call ¶
CreateHandler_GetModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModel'
func (*CreateHandler_GetModel_Call) Return ¶
func (_c *CreateHandler_GetModel_Call) Return(_a0 db_repo.ModelBased) *CreateHandler_GetModel_Call
func (*CreateHandler_GetModel_Call) Run ¶
func (_c *CreateHandler_GetModel_Call) Run(run func()) *CreateHandler_GetModel_Call
func (*CreateHandler_GetModel_Call) RunAndReturn ¶
func (_c *CreateHandler_GetModel_Call) RunAndReturn(run func() db_repo.ModelBased) *CreateHandler_GetModel_Call
type CreateHandler_GetRepository_Call ¶
CreateHandler_GetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepository'
func (*CreateHandler_GetRepository_Call) Return ¶
func (_c *CreateHandler_GetRepository_Call) Return(_a0 crud.Repository) *CreateHandler_GetRepository_Call
func (*CreateHandler_GetRepository_Call) Run ¶
func (_c *CreateHandler_GetRepository_Call) Run(run func()) *CreateHandler_GetRepository_Call
func (*CreateHandler_GetRepository_Call) RunAndReturn ¶
func (_c *CreateHandler_GetRepository_Call) RunAndReturn(run func() crud.Repository) *CreateHandler_GetRepository_Call
type CreateHandler_TransformCreate_Call ¶
CreateHandler_TransformCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformCreate'
func (*CreateHandler_TransformCreate_Call) Return ¶
func (_c *CreateHandler_TransformCreate_Call) Return(err error) *CreateHandler_TransformCreate_Call
func (*CreateHandler_TransformCreate_Call) Run ¶
func (_c *CreateHandler_TransformCreate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *CreateHandler_TransformCreate_Call
func (*CreateHandler_TransformCreate_Call) RunAndReturn ¶
func (_c *CreateHandler_TransformCreate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *CreateHandler_TransformCreate_Call
type CreateHandler_TransformOutput_Call ¶
CreateHandler_TransformOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformOutput'
func (*CreateHandler_TransformOutput_Call) Return ¶
func (_c *CreateHandler_TransformOutput_Call) Return(output interface{}, err error) *CreateHandler_TransformOutput_Call
func (*CreateHandler_TransformOutput_Call) Run ¶
func (_c *CreateHandler_TransformOutput_Call) Run(run func(ctx context.Context, model db_repo.ModelBased, apiView string)) *CreateHandler_TransformOutput_Call
func (*CreateHandler_TransformOutput_Call) RunAndReturn ¶
func (_c *CreateHandler_TransformOutput_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased, string) (interface{}, error)) *CreateHandler_TransformOutput_Call
type Handler ¶
Handler is an autogenerated mock type for the Handler type
func NewHandler ¶
func NewHandler(t mockConstructorTestingTNewHandler) *Handler
NewHandler creates a new instance of Handler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Handler) EXPECT ¶
func (_m *Handler) EXPECT() *Handler_Expecter
func (*Handler) GetCreateInput ¶
func (_m *Handler) GetCreateInput() interface{}
GetCreateInput provides a mock function with given fields:
func (*Handler) GetModel ¶
func (_m *Handler) GetModel() db_repo.ModelBased
GetModel provides a mock function with given fields:
func (*Handler) GetRepository ¶
func (_m *Handler) GetRepository() crud.Repository
GetRepository provides a mock function with given fields:
func (*Handler) GetUpdateInput ¶
func (_m *Handler) GetUpdateInput() interface{}
GetUpdateInput provides a mock function with given fields:
func (*Handler) List ¶
func (_m *Handler) List(ctx context.Context, qb *db_repo.QueryBuilder, apiView string) (interface{}, error)
List provides a mock function with given fields: ctx, qb, apiView
func (*Handler) TransformCreate ¶
func (_m *Handler) TransformCreate(ctx context.Context, input interface{}, model db_repo.ModelBased) error
TransformCreate provides a mock function with given fields: ctx, input, model
func (*Handler) TransformOutput ¶
func (_m *Handler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)
TransformOutput provides a mock function with given fields: ctx, model, apiView
func (*Handler) TransformUpdate ¶
func (_m *Handler) TransformUpdate(ctx context.Context, input interface{}, model db_repo.ModelBased) error
TransformUpdate provides a mock function with given fields: ctx, input, model
type Handler_Expecter ¶
type Handler_Expecter struct {
// contains filtered or unexported fields
}
func (*Handler_Expecter) GetCreateInput ¶
func (_e *Handler_Expecter) GetCreateInput() *Handler_GetCreateInput_Call
GetCreateInput is a helper method to define mock.On call
func (*Handler_Expecter) GetModel ¶
func (_e *Handler_Expecter) GetModel() *Handler_GetModel_Call
GetModel is a helper method to define mock.On call
func (*Handler_Expecter) GetRepository ¶
func (_e *Handler_Expecter) GetRepository() *Handler_GetRepository_Call
GetRepository is a helper method to define mock.On call
func (*Handler_Expecter) GetUpdateInput ¶
func (_e *Handler_Expecter) GetUpdateInput() *Handler_GetUpdateInput_Call
GetUpdateInput is a helper method to define mock.On call
func (*Handler_Expecter) List ¶
func (_e *Handler_Expecter) List(ctx interface{}, qb interface{}, apiView interface{}) *Handler_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- qb *db_repo.QueryBuilder
- apiView string
func (*Handler_Expecter) TransformCreate ¶
func (_e *Handler_Expecter) TransformCreate(ctx interface{}, input interface{}, model interface{}) *Handler_TransformCreate_Call
TransformCreate is a helper method to define mock.On call
- ctx context.Context
- input interface{}
- model db_repo.ModelBased
func (*Handler_Expecter) TransformOutput ¶
func (_e *Handler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *Handler_TransformOutput_Call
TransformOutput is a helper method to define mock.On call
- ctx context.Context
- model db_repo.ModelBased
- apiView string
func (*Handler_Expecter) TransformUpdate ¶
func (_e *Handler_Expecter) TransformUpdate(ctx interface{}, input interface{}, model interface{}) *Handler_TransformUpdate_Call
TransformUpdate is a helper method to define mock.On call
- ctx context.Context
- input interface{}
- model db_repo.ModelBased
type Handler_GetCreateInput_Call ¶
Handler_GetCreateInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCreateInput'
func (*Handler_GetCreateInput_Call) Return ¶
func (_c *Handler_GetCreateInput_Call) Return(_a0 interface{}) *Handler_GetCreateInput_Call
func (*Handler_GetCreateInput_Call) Run ¶
func (_c *Handler_GetCreateInput_Call) Run(run func()) *Handler_GetCreateInput_Call
func (*Handler_GetCreateInput_Call) RunAndReturn ¶
func (_c *Handler_GetCreateInput_Call) RunAndReturn(run func() interface{}) *Handler_GetCreateInput_Call
type Handler_GetModel_Call ¶
Handler_GetModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModel'
func (*Handler_GetModel_Call) Return ¶
func (_c *Handler_GetModel_Call) Return(_a0 db_repo.ModelBased) *Handler_GetModel_Call
func (*Handler_GetModel_Call) Run ¶
func (_c *Handler_GetModel_Call) Run(run func()) *Handler_GetModel_Call
func (*Handler_GetModel_Call) RunAndReturn ¶
func (_c *Handler_GetModel_Call) RunAndReturn(run func() db_repo.ModelBased) *Handler_GetModel_Call
type Handler_GetRepository_Call ¶
Handler_GetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepository'
func (*Handler_GetRepository_Call) Return ¶
func (_c *Handler_GetRepository_Call) Return(_a0 crud.Repository) *Handler_GetRepository_Call
func (*Handler_GetRepository_Call) Run ¶
func (_c *Handler_GetRepository_Call) Run(run func()) *Handler_GetRepository_Call
func (*Handler_GetRepository_Call) RunAndReturn ¶
func (_c *Handler_GetRepository_Call) RunAndReturn(run func() crud.Repository) *Handler_GetRepository_Call
type Handler_GetUpdateInput_Call ¶
Handler_GetUpdateInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUpdateInput'
func (*Handler_GetUpdateInput_Call) Return ¶
func (_c *Handler_GetUpdateInput_Call) Return(_a0 interface{}) *Handler_GetUpdateInput_Call
func (*Handler_GetUpdateInput_Call) Run ¶
func (_c *Handler_GetUpdateInput_Call) Run(run func()) *Handler_GetUpdateInput_Call
func (*Handler_GetUpdateInput_Call) RunAndReturn ¶
func (_c *Handler_GetUpdateInput_Call) RunAndReturn(run func() interface{}) *Handler_GetUpdateInput_Call
type Handler_List_Call ¶
Handler_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Handler_List_Call) Return ¶
func (_c *Handler_List_Call) Return(out interface{}, err error) *Handler_List_Call
func (*Handler_List_Call) Run ¶
func (_c *Handler_List_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, apiView string)) *Handler_List_Call
func (*Handler_List_Call) RunAndReturn ¶
func (_c *Handler_List_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, string) (interface{}, error)) *Handler_List_Call
type Handler_TransformCreate_Call ¶
Handler_TransformCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformCreate'
func (*Handler_TransformCreate_Call) Return ¶
func (_c *Handler_TransformCreate_Call) Return(err error) *Handler_TransformCreate_Call
func (*Handler_TransformCreate_Call) Run ¶
func (_c *Handler_TransformCreate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *Handler_TransformCreate_Call
func (*Handler_TransformCreate_Call) RunAndReturn ¶
func (_c *Handler_TransformCreate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *Handler_TransformCreate_Call
type Handler_TransformOutput_Call ¶
Handler_TransformOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformOutput'
func (*Handler_TransformOutput_Call) Return ¶
func (_c *Handler_TransformOutput_Call) Return(output interface{}, err error) *Handler_TransformOutput_Call
func (*Handler_TransformOutput_Call) Run ¶
func (_c *Handler_TransformOutput_Call) Run(run func(ctx context.Context, model db_repo.ModelBased, apiView string)) *Handler_TransformOutput_Call
func (*Handler_TransformOutput_Call) RunAndReturn ¶
func (_c *Handler_TransformOutput_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased, string) (interface{}, error)) *Handler_TransformOutput_Call
type Handler_TransformUpdate_Call ¶
Handler_TransformUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformUpdate'
func (*Handler_TransformUpdate_Call) Return ¶
func (_c *Handler_TransformUpdate_Call) Return(err error) *Handler_TransformUpdate_Call
func (*Handler_TransformUpdate_Call) Run ¶
func (_c *Handler_TransformUpdate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *Handler_TransformUpdate_Call
func (*Handler_TransformUpdate_Call) RunAndReturn ¶
func (_c *Handler_TransformUpdate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *Handler_TransformUpdate_Call
type ListHandler ¶
ListHandler is an autogenerated mock type for the ListHandler type
func NewListHandler ¶
func NewListHandler(t mockConstructorTestingTNewListHandler) *ListHandler
NewListHandler creates a new instance of ListHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ListHandler) EXPECT ¶
func (_m *ListHandler) EXPECT() *ListHandler_Expecter
func (*ListHandler) GetModel ¶
func (_m *ListHandler) GetModel() db_repo.ModelBased
GetModel provides a mock function with given fields:
func (*ListHandler) GetRepository ¶
func (_m *ListHandler) GetRepository() crud.Repository
GetRepository provides a mock function with given fields:
func (*ListHandler) List ¶
func (_m *ListHandler) List(ctx context.Context, qb *db_repo.QueryBuilder, apiView string) (interface{}, error)
List provides a mock function with given fields: ctx, qb, apiView
func (*ListHandler) TransformOutput ¶
func (_m *ListHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)
TransformOutput provides a mock function with given fields: ctx, model, apiView
type ListHandler_Expecter ¶
type ListHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*ListHandler_Expecter) GetModel ¶
func (_e *ListHandler_Expecter) GetModel() *ListHandler_GetModel_Call
GetModel is a helper method to define mock.On call
func (*ListHandler_Expecter) GetRepository ¶
func (_e *ListHandler_Expecter) GetRepository() *ListHandler_GetRepository_Call
GetRepository is a helper method to define mock.On call
func (*ListHandler_Expecter) List ¶
func (_e *ListHandler_Expecter) List(ctx interface{}, qb interface{}, apiView interface{}) *ListHandler_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- qb *db_repo.QueryBuilder
- apiView string
func (*ListHandler_Expecter) TransformOutput ¶
func (_e *ListHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *ListHandler_TransformOutput_Call
TransformOutput is a helper method to define mock.On call
- ctx context.Context
- model db_repo.ModelBased
- apiView string
type ListHandler_GetModel_Call ¶
ListHandler_GetModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModel'
func (*ListHandler_GetModel_Call) Return ¶
func (_c *ListHandler_GetModel_Call) Return(_a0 db_repo.ModelBased) *ListHandler_GetModel_Call
func (*ListHandler_GetModel_Call) Run ¶
func (_c *ListHandler_GetModel_Call) Run(run func()) *ListHandler_GetModel_Call
func (*ListHandler_GetModel_Call) RunAndReturn ¶
func (_c *ListHandler_GetModel_Call) RunAndReturn(run func() db_repo.ModelBased) *ListHandler_GetModel_Call
type ListHandler_GetRepository_Call ¶
ListHandler_GetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepository'
func (*ListHandler_GetRepository_Call) Return ¶
func (_c *ListHandler_GetRepository_Call) Return(_a0 crud.Repository) *ListHandler_GetRepository_Call
func (*ListHandler_GetRepository_Call) Run ¶
func (_c *ListHandler_GetRepository_Call) Run(run func()) *ListHandler_GetRepository_Call
func (*ListHandler_GetRepository_Call) RunAndReturn ¶
func (_c *ListHandler_GetRepository_Call) RunAndReturn(run func() crud.Repository) *ListHandler_GetRepository_Call
type ListHandler_List_Call ¶
ListHandler_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*ListHandler_List_Call) Return ¶
func (_c *ListHandler_List_Call) Return(out interface{}, err error) *ListHandler_List_Call
func (*ListHandler_List_Call) Run ¶
func (_c *ListHandler_List_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, apiView string)) *ListHandler_List_Call
func (*ListHandler_List_Call) RunAndReturn ¶
func (_c *ListHandler_List_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, string) (interface{}, error)) *ListHandler_List_Call
type ListHandler_TransformOutput_Call ¶
ListHandler_TransformOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformOutput'
func (*ListHandler_TransformOutput_Call) Return ¶
func (_c *ListHandler_TransformOutput_Call) Return(output interface{}, err error) *ListHandler_TransformOutput_Call
func (*ListHandler_TransformOutput_Call) Run ¶
func (_c *ListHandler_TransformOutput_Call) Run(run func(ctx context.Context, model db_repo.ModelBased, apiView string)) *ListHandler_TransformOutput_Call
func (*ListHandler_TransformOutput_Call) RunAndReturn ¶
func (_c *ListHandler_TransformOutput_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased, string) (interface{}, error)) *ListHandler_TransformOutput_Call
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t mockConstructorTestingTNewRepository) *Repository
NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Repository) Count ¶
func (_m *Repository) Count(ctx context.Context, qb *db_repo.QueryBuilder, model db_repo.ModelBased) (int, error)
Count provides a mock function with given fields: ctx, qb, model
func (*Repository) Create ¶
func (_m *Repository) Create(ctx context.Context, value db_repo.ModelBased) error
Create provides a mock function with given fields: ctx, value
func (*Repository) Delete ¶
func (_m *Repository) Delete(ctx context.Context, value db_repo.ModelBased) error
Delete provides a mock function with given fields: ctx, value
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) GetMetadata ¶
func (_m *Repository) GetMetadata() db_repo.Metadata
GetMetadata provides a mock function with given fields:
func (*Repository) Query ¶
func (_m *Repository) Query(ctx context.Context, qb *db_repo.QueryBuilder, result interface{}) error
Query provides a mock function with given fields: ctx, qb, result
func (*Repository) Read ¶
func (_m *Repository) Read(ctx context.Context, id *uint, out db_repo.ModelBased) error
Read provides a mock function with given fields: ctx, id, out
func (*Repository) Update ¶
func (_m *Repository) Update(ctx context.Context, value db_repo.ModelBased) error
Update provides a mock function with given fields: ctx, value
type Repository_Count_Call ¶
Repository_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'
func (*Repository_Count_Call) Return ¶
func (_c *Repository_Count_Call) Return(_a0 int, _a1 error) *Repository_Count_Call
func (*Repository_Count_Call) Run ¶
func (_c *Repository_Count_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, model db_repo.ModelBased)) *Repository_Count_Call
func (*Repository_Count_Call) RunAndReturn ¶
func (_c *Repository_Count_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, db_repo.ModelBased) (int, error)) *Repository_Count_Call
type Repository_Create_Call ¶
Repository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Repository_Create_Call) Return ¶
func (_c *Repository_Create_Call) Return(_a0 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶
func (_c *Repository_Create_Call) Run(run func(ctx context.Context, value db_repo.ModelBased)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased) error) *Repository_Create_Call
type Repository_Delete_Call ¶
Repository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Repository_Delete_Call) Return ¶
func (_c *Repository_Delete_Call) Return(_a0 error) *Repository_Delete_Call
func (*Repository_Delete_Call) Run ¶
func (_c *Repository_Delete_Call) Run(run func(ctx context.Context, value db_repo.ModelBased)) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶
func (_c *Repository_Delete_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased) error) *Repository_Delete_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) Count ¶
func (_e *Repository_Expecter) Count(ctx interface{}, qb interface{}, model interface{}) *Repository_Count_Call
Count is a helper method to define mock.On call
- ctx context.Context
- qb *db_repo.QueryBuilder
- model db_repo.ModelBased
func (*Repository_Expecter) Create ¶
func (_e *Repository_Expecter) Create(ctx interface{}, value interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- value db_repo.ModelBased
func (*Repository_Expecter) Delete ¶
func (_e *Repository_Expecter) Delete(ctx interface{}, value interface{}) *Repository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- value db_repo.ModelBased
func (*Repository_Expecter) GetMetadata ¶
func (_e *Repository_Expecter) GetMetadata() *Repository_GetMetadata_Call
GetMetadata is a helper method to define mock.On call
func (*Repository_Expecter) Query ¶
func (_e *Repository_Expecter) Query(ctx interface{}, qb interface{}, result interface{}) *Repository_Query_Call
Query is a helper method to define mock.On call
- ctx context.Context
- qb *db_repo.QueryBuilder
- result interface{}
func (*Repository_Expecter) Read ¶
func (_e *Repository_Expecter) Read(ctx interface{}, id interface{}, out interface{}) *Repository_Read_Call
Read is a helper method to define mock.On call
- ctx context.Context
- id *uint
- out db_repo.ModelBased
func (*Repository_Expecter) Update ¶
func (_e *Repository_Expecter) Update(ctx interface{}, value interface{}) *Repository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- value db_repo.ModelBased
type Repository_GetMetadata_Call ¶
Repository_GetMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetadata'
func (*Repository_GetMetadata_Call) Return ¶
func (_c *Repository_GetMetadata_Call) Return(_a0 db_repo.Metadata) *Repository_GetMetadata_Call
func (*Repository_GetMetadata_Call) Run ¶
func (_c *Repository_GetMetadata_Call) Run(run func()) *Repository_GetMetadata_Call
func (*Repository_GetMetadata_Call) RunAndReturn ¶
func (_c *Repository_GetMetadata_Call) RunAndReturn(run func() db_repo.Metadata) *Repository_GetMetadata_Call
type Repository_Query_Call ¶
Repository_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*Repository_Query_Call) Return ¶
func (_c *Repository_Query_Call) Return(_a0 error) *Repository_Query_Call
func (*Repository_Query_Call) Run ¶
func (_c *Repository_Query_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, result interface{})) *Repository_Query_Call
func (*Repository_Query_Call) RunAndReturn ¶
func (_c *Repository_Query_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, interface{}) error) *Repository_Query_Call
type Repository_Read_Call ¶
Repository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*Repository_Read_Call) Return ¶
func (_c *Repository_Read_Call) Return(_a0 error) *Repository_Read_Call
func (*Repository_Read_Call) Run ¶
func (_c *Repository_Read_Call) Run(run func(ctx context.Context, id *uint, out db_repo.ModelBased)) *Repository_Read_Call
func (*Repository_Read_Call) RunAndReturn ¶
func (_c *Repository_Read_Call) RunAndReturn(run func(context.Context, *uint, db_repo.ModelBased) error) *Repository_Read_Call
type Repository_Update_Call ¶
Repository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Repository_Update_Call) Return ¶
func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶
func (_c *Repository_Update_Call) Run(run func(ctx context.Context, value db_repo.ModelBased)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased) error) *Repository_Update_Call
type UpdateHandler ¶
UpdateHandler is an autogenerated mock type for the UpdateHandler type
func NewUpdateHandler ¶
func NewUpdateHandler(t mockConstructorTestingTNewUpdateHandler) *UpdateHandler
NewUpdateHandler creates a new instance of UpdateHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UpdateHandler) EXPECT ¶
func (_m *UpdateHandler) EXPECT() *UpdateHandler_Expecter
func (*UpdateHandler) GetModel ¶
func (_m *UpdateHandler) GetModel() db_repo.ModelBased
GetModel provides a mock function with given fields:
func (*UpdateHandler) GetRepository ¶
func (_m *UpdateHandler) GetRepository() crud.Repository
GetRepository provides a mock function with given fields:
func (*UpdateHandler) GetUpdateInput ¶
func (_m *UpdateHandler) GetUpdateInput() interface{}
GetUpdateInput provides a mock function with given fields:
func (*UpdateHandler) TransformOutput ¶
func (_m *UpdateHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)
TransformOutput provides a mock function with given fields: ctx, model, apiView
func (*UpdateHandler) TransformUpdate ¶
func (_m *UpdateHandler) TransformUpdate(ctx context.Context, input interface{}, model db_repo.ModelBased) error
TransformUpdate provides a mock function with given fields: ctx, input, model
type UpdateHandler_Expecter ¶
type UpdateHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*UpdateHandler_Expecter) GetModel ¶
func (_e *UpdateHandler_Expecter) GetModel() *UpdateHandler_GetModel_Call
GetModel is a helper method to define mock.On call
func (*UpdateHandler_Expecter) GetRepository ¶
func (_e *UpdateHandler_Expecter) GetRepository() *UpdateHandler_GetRepository_Call
GetRepository is a helper method to define mock.On call
func (*UpdateHandler_Expecter) GetUpdateInput ¶
func (_e *UpdateHandler_Expecter) GetUpdateInput() *UpdateHandler_GetUpdateInput_Call
GetUpdateInput is a helper method to define mock.On call
func (*UpdateHandler_Expecter) TransformOutput ¶
func (_e *UpdateHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *UpdateHandler_TransformOutput_Call
TransformOutput is a helper method to define mock.On call
- ctx context.Context
- model db_repo.ModelBased
- apiView string
func (*UpdateHandler_Expecter) TransformUpdate ¶
func (_e *UpdateHandler_Expecter) TransformUpdate(ctx interface{}, input interface{}, model interface{}) *UpdateHandler_TransformUpdate_Call
TransformUpdate is a helper method to define mock.On call
- ctx context.Context
- input interface{}
- model db_repo.ModelBased
type UpdateHandler_GetModel_Call ¶
UpdateHandler_GetModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModel'
func (*UpdateHandler_GetModel_Call) Return ¶
func (_c *UpdateHandler_GetModel_Call) Return(_a0 db_repo.ModelBased) *UpdateHandler_GetModel_Call
func (*UpdateHandler_GetModel_Call) Run ¶
func (_c *UpdateHandler_GetModel_Call) Run(run func()) *UpdateHandler_GetModel_Call
func (*UpdateHandler_GetModel_Call) RunAndReturn ¶
func (_c *UpdateHandler_GetModel_Call) RunAndReturn(run func() db_repo.ModelBased) *UpdateHandler_GetModel_Call
type UpdateHandler_GetRepository_Call ¶
UpdateHandler_GetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepository'
func (*UpdateHandler_GetRepository_Call) Return ¶
func (_c *UpdateHandler_GetRepository_Call) Return(_a0 crud.Repository) *UpdateHandler_GetRepository_Call
func (*UpdateHandler_GetRepository_Call) Run ¶
func (_c *UpdateHandler_GetRepository_Call) Run(run func()) *UpdateHandler_GetRepository_Call
func (*UpdateHandler_GetRepository_Call) RunAndReturn ¶
func (_c *UpdateHandler_GetRepository_Call) RunAndReturn(run func() crud.Repository) *UpdateHandler_GetRepository_Call
type UpdateHandler_GetUpdateInput_Call ¶
UpdateHandler_GetUpdateInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUpdateInput'
func (*UpdateHandler_GetUpdateInput_Call) Return ¶
func (_c *UpdateHandler_GetUpdateInput_Call) Return(_a0 interface{}) *UpdateHandler_GetUpdateInput_Call
func (*UpdateHandler_GetUpdateInput_Call) Run ¶
func (_c *UpdateHandler_GetUpdateInput_Call) Run(run func()) *UpdateHandler_GetUpdateInput_Call
func (*UpdateHandler_GetUpdateInput_Call) RunAndReturn ¶
func (_c *UpdateHandler_GetUpdateInput_Call) RunAndReturn(run func() interface{}) *UpdateHandler_GetUpdateInput_Call
type UpdateHandler_TransformOutput_Call ¶
UpdateHandler_TransformOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformOutput'
func (*UpdateHandler_TransformOutput_Call) Return ¶
func (_c *UpdateHandler_TransformOutput_Call) Return(output interface{}, err error) *UpdateHandler_TransformOutput_Call
func (*UpdateHandler_TransformOutput_Call) Run ¶
func (_c *UpdateHandler_TransformOutput_Call) Run(run func(ctx context.Context, model db_repo.ModelBased, apiView string)) *UpdateHandler_TransformOutput_Call
func (*UpdateHandler_TransformOutput_Call) RunAndReturn ¶
func (_c *UpdateHandler_TransformOutput_Call) RunAndReturn(run func(context.Context, db_repo.ModelBased, string) (interface{}, error)) *UpdateHandler_TransformOutput_Call
type UpdateHandler_TransformUpdate_Call ¶
UpdateHandler_TransformUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformUpdate'
func (*UpdateHandler_TransformUpdate_Call) Return ¶
func (_c *UpdateHandler_TransformUpdate_Call) Return(err error) *UpdateHandler_TransformUpdate_Call
func (*UpdateHandler_TransformUpdate_Call) Run ¶
func (_c *UpdateHandler_TransformUpdate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *UpdateHandler_TransformUpdate_Call
func (*UpdateHandler_TransformUpdate_Call) RunAndReturn ¶
func (_c *UpdateHandler_TransformUpdate_Call) RunAndReturn(run func(context.Context, interface{}, db_repo.ModelBased) error) *UpdateHandler_TransformUpdate_Call