Documentation
¶
Index ¶
- type ISettingService
- func (_m *ISettingService) EXPECT() *ISettingService_Expecter
- func (_m *ISettingService) GetAvailableModelSettings(ctx context.Context, model setting.IModelSetting) ([]setting.Dto, error)
- func (_m *ISettingService) GetMailerSettings(ctx context.Context) (*settings.MailerSettings, error)
- func (_m *ISettingService) GetModelSetting(ctx context.Context, name string, model setting.IModelSetting) (*models.Setting, error)
- func (_m *ISettingService) GetRootSetting(ctx context.Context, name string) (*models.Setting, error)
- func (_m *ISettingService) GetRootSettings(ctx context.Context) ([]*models.Setting, error)
- func (_m *ISettingService) GetRootSettingsByNames(ctx context.Context, names []string) ([]*models.Setting, error)
- func (_m *ISettingService) GetRootSettingsList(ctx context.Context) ([]setting.Dto, error)
- func (_m *ISettingService) Is2faRequired(name string) bool
- func (_m *ISettingService) RemoveRootSetting(ctx context.Context, name string) error
- func (_m *ISettingService) RemoveSetting(ctx context.Context, user *models.User, name string) error
- func (_m *ISettingService) SetModelSetting(ctx context.Context, dto setting.UpdateDTO, option ...repos.Option) error
- func (_m *ISettingService) SetRootSetting(ctx context.Context, name string, value string) (*models.Setting, error)
- type ISettingService_Expecter
- func (_e *ISettingService_Expecter) GetAvailableModelSettings(ctx interface{}, model interface{}) *ISettingService_GetAvailableModelSettings_Call
- func (_e *ISettingService_Expecter) GetMailerSettings(ctx interface{}) *ISettingService_GetMailerSettings_Call
- func (_e *ISettingService_Expecter) GetModelSetting(ctx interface{}, name interface{}, model interface{}) *ISettingService_GetModelSetting_Call
- func (_e *ISettingService_Expecter) GetRootSetting(ctx interface{}, name interface{}) *ISettingService_GetRootSetting_Call
- func (_e *ISettingService_Expecter) GetRootSettings(ctx interface{}) *ISettingService_GetRootSettings_Call
- func (_e *ISettingService_Expecter) GetRootSettingsByNames(ctx interface{}, names interface{}) *ISettingService_GetRootSettingsByNames_Call
- func (_e *ISettingService_Expecter) GetRootSettingsList(ctx interface{}) *ISettingService_GetRootSettingsList_Call
- func (_e *ISettingService_Expecter) Is2faRequired(name interface{}) *ISettingService_Is2faRequired_Call
- func (_e *ISettingService_Expecter) RemoveRootSetting(ctx interface{}, name interface{}) *ISettingService_RemoveRootSetting_Call
- func (_e *ISettingService_Expecter) RemoveSetting(ctx interface{}, user interface{}, name interface{}) *ISettingService_RemoveSetting_Call
- func (_e *ISettingService_Expecter) SetModelSetting(ctx interface{}, dto interface{}, option ...interface{}) *ISettingService_SetModelSetting_Call
- func (_e *ISettingService_Expecter) SetRootSetting(ctx interface{}, name interface{}, value interface{}) *ISettingService_SetRootSetting_Call
- type ISettingService_GetAvailableModelSettings_Call
- func (_c *ISettingService_GetAvailableModelSettings_Call) Return(_a0 []setting.Dto, _a1 error) *ISettingService_GetAvailableModelSettings_Call
- func (_c *ISettingService_GetAvailableModelSettings_Call) Run(run func(ctx context.Context, model setting.IModelSetting)) *ISettingService_GetAvailableModelSettings_Call
- func (_c *ISettingService_GetAvailableModelSettings_Call) RunAndReturn(run func(context.Context, setting.IModelSetting) ([]setting.Dto, error)) *ISettingService_GetAvailableModelSettings_Call
- type ISettingService_GetMailerSettings_Call
- func (_c *ISettingService_GetMailerSettings_Call) Return(_a0 *settings.MailerSettings, _a1 error) *ISettingService_GetMailerSettings_Call
- func (_c *ISettingService_GetMailerSettings_Call) Run(run func(ctx context.Context)) *ISettingService_GetMailerSettings_Call
- func (_c *ISettingService_GetMailerSettings_Call) RunAndReturn(run func(context.Context) (*settings.MailerSettings, error)) *ISettingService_GetMailerSettings_Call
- type ISettingService_GetModelSetting_Call
- func (_c *ISettingService_GetModelSetting_Call) Return(_a0 *models.Setting, _a1 error) *ISettingService_GetModelSetting_Call
- func (_c *ISettingService_GetModelSetting_Call) Run(run func(ctx context.Context, name string, model setting.IModelSetting)) *ISettingService_GetModelSetting_Call
- func (_c *ISettingService_GetModelSetting_Call) RunAndReturn(...) *ISettingService_GetModelSetting_Call
- type ISettingService_GetRootSetting_Call
- func (_c *ISettingService_GetRootSetting_Call) Return(_a0 *models.Setting, _a1 error) *ISettingService_GetRootSetting_Call
- func (_c *ISettingService_GetRootSetting_Call) Run(run func(ctx context.Context, name string)) *ISettingService_GetRootSetting_Call
- func (_c *ISettingService_GetRootSetting_Call) RunAndReturn(run func(context.Context, string) (*models.Setting, error)) *ISettingService_GetRootSetting_Call
- type ISettingService_GetRootSettingsByNames_Call
- func (_c *ISettingService_GetRootSettingsByNames_Call) Return(_a0 []*models.Setting, _a1 error) *ISettingService_GetRootSettingsByNames_Call
- func (_c *ISettingService_GetRootSettingsByNames_Call) Run(run func(ctx context.Context, names []string)) *ISettingService_GetRootSettingsByNames_Call
- func (_c *ISettingService_GetRootSettingsByNames_Call) RunAndReturn(run func(context.Context, []string) ([]*models.Setting, error)) *ISettingService_GetRootSettingsByNames_Call
- type ISettingService_GetRootSettingsList_Call
- func (_c *ISettingService_GetRootSettingsList_Call) Return(_a0 []setting.Dto, _a1 error) *ISettingService_GetRootSettingsList_Call
- func (_c *ISettingService_GetRootSettingsList_Call) Run(run func(ctx context.Context)) *ISettingService_GetRootSettingsList_Call
- func (_c *ISettingService_GetRootSettingsList_Call) RunAndReturn(run func(context.Context) ([]setting.Dto, error)) *ISettingService_GetRootSettingsList_Call
- type ISettingService_GetRootSettings_Call
- func (_c *ISettingService_GetRootSettings_Call) Return(_a0 []*models.Setting, _a1 error) *ISettingService_GetRootSettings_Call
- func (_c *ISettingService_GetRootSettings_Call) Run(run func(ctx context.Context)) *ISettingService_GetRootSettings_Call
- func (_c *ISettingService_GetRootSettings_Call) RunAndReturn(run func(context.Context) ([]*models.Setting, error)) *ISettingService_GetRootSettings_Call
- type ISettingService_Is2faRequired_Call
- func (_c *ISettingService_Is2faRequired_Call) Return(_a0 bool) *ISettingService_Is2faRequired_Call
- func (_c *ISettingService_Is2faRequired_Call) Run(run func(name string)) *ISettingService_Is2faRequired_Call
- func (_c *ISettingService_Is2faRequired_Call) RunAndReturn(run func(string) bool) *ISettingService_Is2faRequired_Call
- type ISettingService_RemoveRootSetting_Call
- func (_c *ISettingService_RemoveRootSetting_Call) Return(_a0 error) *ISettingService_RemoveRootSetting_Call
- func (_c *ISettingService_RemoveRootSetting_Call) Run(run func(ctx context.Context, name string)) *ISettingService_RemoveRootSetting_Call
- func (_c *ISettingService_RemoveRootSetting_Call) RunAndReturn(run func(context.Context, string) error) *ISettingService_RemoveRootSetting_Call
- type ISettingService_RemoveSetting_Call
- func (_c *ISettingService_RemoveSetting_Call) Return(_a0 error) *ISettingService_RemoveSetting_Call
- func (_c *ISettingService_RemoveSetting_Call) Run(run func(ctx context.Context, user *models.User, name string)) *ISettingService_RemoveSetting_Call
- func (_c *ISettingService_RemoveSetting_Call) RunAndReturn(run func(context.Context, *models.User, string) error) *ISettingService_RemoveSetting_Call
- type ISettingService_SetModelSetting_Call
- func (_c *ISettingService_SetModelSetting_Call) Return(_a0 error) *ISettingService_SetModelSetting_Call
- func (_c *ISettingService_SetModelSetting_Call) Run(run func(ctx context.Context, dto setting.UpdateDTO, option ...repos.Option)) *ISettingService_SetModelSetting_Call
- func (_c *ISettingService_SetModelSetting_Call) RunAndReturn(run func(context.Context, setting.UpdateDTO, ...repos.Option) error) *ISettingService_SetModelSetting_Call
- type ISettingService_SetRootSetting_Call
- func (_c *ISettingService_SetRootSetting_Call) Return(_a0 *models.Setting, _a1 error) *ISettingService_SetRootSetting_Call
- func (_c *ISettingService_SetRootSetting_Call) Run(run func(ctx context.Context, name string, value string)) *ISettingService_SetRootSetting_Call
- func (_c *ISettingService_SetRootSetting_Call) RunAndReturn(run func(context.Context, string, string) (*models.Setting, error)) *ISettingService_SetRootSetting_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISettingService ¶
ISettingService is an autogenerated mock type for the ISettingService type
func NewISettingService ¶
func NewISettingService(t interface {
mock.TestingT
Cleanup(func())
}) *ISettingService
NewISettingService creates a new instance of ISettingService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ISettingService) EXPECT ¶
func (_m *ISettingService) EXPECT() *ISettingService_Expecter
func (*ISettingService) GetAvailableModelSettings ¶
func (_m *ISettingService) GetAvailableModelSettings(ctx context.Context, model setting.IModelSetting) ([]setting.Dto, error)
GetAvailableModelSettings provides a mock function with given fields: ctx, model
func (*ISettingService) GetMailerSettings ¶
func (_m *ISettingService) GetMailerSettings(ctx context.Context) (*settings.MailerSettings, error)
GetMailerSettings provides a mock function with given fields: ctx
func (*ISettingService) GetModelSetting ¶
func (_m *ISettingService) GetModelSetting(ctx context.Context, name string, model setting.IModelSetting) (*models.Setting, error)
GetModelSetting provides a mock function with given fields: ctx, name, model
func (*ISettingService) GetRootSetting ¶
func (_m *ISettingService) GetRootSetting(ctx context.Context, name string) (*models.Setting, error)
GetRootSetting provides a mock function with given fields: ctx, name
func (*ISettingService) GetRootSettings ¶
GetRootSettings provides a mock function with given fields: ctx
func (*ISettingService) GetRootSettingsByNames ¶
func (_m *ISettingService) GetRootSettingsByNames(ctx context.Context, names []string) ([]*models.Setting, error)
GetRootSettingsByNames provides a mock function with given fields: ctx, names
func (*ISettingService) GetRootSettingsList ¶
GetRootSettingsList provides a mock function with given fields: ctx
func (*ISettingService) Is2faRequired ¶
func (_m *ISettingService) Is2faRequired(name string) bool
Is2faRequired provides a mock function with given fields: name
func (*ISettingService) RemoveRootSetting ¶
func (_m *ISettingService) RemoveRootSetting(ctx context.Context, name string) error
RemoveRootSetting provides a mock function with given fields: ctx, name
func (*ISettingService) RemoveSetting ¶
RemoveSetting provides a mock function with given fields: ctx, user, name
func (*ISettingService) SetModelSetting ¶
func (_m *ISettingService) SetModelSetting(ctx context.Context, dto setting.UpdateDTO, option ...repos.Option) error
SetModelSetting provides a mock function with given fields: ctx, dto, option
func (*ISettingService) SetRootSetting ¶
func (_m *ISettingService) SetRootSetting(ctx context.Context, name string, value string) (*models.Setting, error)
SetRootSetting provides a mock function with given fields: ctx, name, value
type ISettingService_Expecter ¶
type ISettingService_Expecter struct {
// contains filtered or unexported fields
}
func (*ISettingService_Expecter) GetAvailableModelSettings ¶
func (_e *ISettingService_Expecter) GetAvailableModelSettings(ctx interface{}, model interface{}) *ISettingService_GetAvailableModelSettings_Call
GetAvailableModelSettings is a helper method to define mock.On call
- ctx context.Context
- model setting.IModelSetting
func (*ISettingService_Expecter) GetMailerSettings ¶
func (_e *ISettingService_Expecter) GetMailerSettings(ctx interface{}) *ISettingService_GetMailerSettings_Call
GetMailerSettings is a helper method to define mock.On call
- ctx context.Context
func (*ISettingService_Expecter) GetModelSetting ¶
func (_e *ISettingService_Expecter) GetModelSetting(ctx interface{}, name interface{}, model interface{}) *ISettingService_GetModelSetting_Call
GetModelSetting is a helper method to define mock.On call
- ctx context.Context
- name string
- model setting.IModelSetting
func (*ISettingService_Expecter) GetRootSetting ¶
func (_e *ISettingService_Expecter) GetRootSetting(ctx interface{}, name interface{}) *ISettingService_GetRootSetting_Call
GetRootSetting is a helper method to define mock.On call
- ctx context.Context
- name string
func (*ISettingService_Expecter) GetRootSettings ¶
func (_e *ISettingService_Expecter) GetRootSettings(ctx interface{}) *ISettingService_GetRootSettings_Call
GetRootSettings is a helper method to define mock.On call
- ctx context.Context
func (*ISettingService_Expecter) GetRootSettingsByNames ¶
func (_e *ISettingService_Expecter) GetRootSettingsByNames(ctx interface{}, names interface{}) *ISettingService_GetRootSettingsByNames_Call
GetRootSettingsByNames is a helper method to define mock.On call
- ctx context.Context
- names []string
func (*ISettingService_Expecter) GetRootSettingsList ¶
func (_e *ISettingService_Expecter) GetRootSettingsList(ctx interface{}) *ISettingService_GetRootSettingsList_Call
GetRootSettingsList is a helper method to define mock.On call
- ctx context.Context
func (*ISettingService_Expecter) Is2faRequired ¶
func (_e *ISettingService_Expecter) Is2faRequired(name interface{}) *ISettingService_Is2faRequired_Call
Is2faRequired is a helper method to define mock.On call
- name string
func (*ISettingService_Expecter) RemoveRootSetting ¶
func (_e *ISettingService_Expecter) RemoveRootSetting(ctx interface{}, name interface{}) *ISettingService_RemoveRootSetting_Call
RemoveRootSetting is a helper method to define mock.On call
- ctx context.Context
- name string
func (*ISettingService_Expecter) RemoveSetting ¶
func (_e *ISettingService_Expecter) RemoveSetting(ctx interface{}, user interface{}, name interface{}) *ISettingService_RemoveSetting_Call
RemoveSetting is a helper method to define mock.On call
- ctx context.Context
- user *models.User
- name string
func (*ISettingService_Expecter) SetModelSetting ¶
func (_e *ISettingService_Expecter) SetModelSetting(ctx interface{}, dto interface{}, option ...interface{}) *ISettingService_SetModelSetting_Call
SetModelSetting is a helper method to define mock.On call
- ctx context.Context
- dto setting.UpdateDTO
- option ...repos.Option
func (*ISettingService_Expecter) SetRootSetting ¶
func (_e *ISettingService_Expecter) SetRootSetting(ctx interface{}, name interface{}, value interface{}) *ISettingService_SetRootSetting_Call
SetRootSetting is a helper method to define mock.On call
- ctx context.Context
- name string
- value string
type ISettingService_GetAvailableModelSettings_Call ¶
ISettingService_GetAvailableModelSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAvailableModelSettings'
func (*ISettingService_GetAvailableModelSettings_Call) Return ¶
func (_c *ISettingService_GetAvailableModelSettings_Call) Return(_a0 []setting.Dto, _a1 error) *ISettingService_GetAvailableModelSettings_Call
func (*ISettingService_GetAvailableModelSettings_Call) Run ¶
func (_c *ISettingService_GetAvailableModelSettings_Call) Run(run func(ctx context.Context, model setting.IModelSetting)) *ISettingService_GetAvailableModelSettings_Call
func (*ISettingService_GetAvailableModelSettings_Call) RunAndReturn ¶
func (_c *ISettingService_GetAvailableModelSettings_Call) RunAndReturn(run func(context.Context, setting.IModelSetting) ([]setting.Dto, error)) *ISettingService_GetAvailableModelSettings_Call
type ISettingService_GetMailerSettings_Call ¶
ISettingService_GetMailerSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMailerSettings'
func (*ISettingService_GetMailerSettings_Call) Return ¶
func (_c *ISettingService_GetMailerSettings_Call) Return(_a0 *settings.MailerSettings, _a1 error) *ISettingService_GetMailerSettings_Call
func (*ISettingService_GetMailerSettings_Call) Run ¶
func (_c *ISettingService_GetMailerSettings_Call) Run(run func(ctx context.Context)) *ISettingService_GetMailerSettings_Call
func (*ISettingService_GetMailerSettings_Call) RunAndReturn ¶
func (_c *ISettingService_GetMailerSettings_Call) RunAndReturn(run func(context.Context) (*settings.MailerSettings, error)) *ISettingService_GetMailerSettings_Call
type ISettingService_GetModelSetting_Call ¶
ISettingService_GetModelSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModelSetting'
func (*ISettingService_GetModelSetting_Call) Return ¶
func (_c *ISettingService_GetModelSetting_Call) Return(_a0 *models.Setting, _a1 error) *ISettingService_GetModelSetting_Call
func (*ISettingService_GetModelSetting_Call) Run ¶
func (_c *ISettingService_GetModelSetting_Call) Run(run func(ctx context.Context, name string, model setting.IModelSetting)) *ISettingService_GetModelSetting_Call
func (*ISettingService_GetModelSetting_Call) RunAndReturn ¶
func (_c *ISettingService_GetModelSetting_Call) RunAndReturn(run func(context.Context, string, setting.IModelSetting) (*models.Setting, error)) *ISettingService_GetModelSetting_Call
type ISettingService_GetRootSetting_Call ¶
ISettingService_GetRootSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRootSetting'
func (*ISettingService_GetRootSetting_Call) Return ¶
func (_c *ISettingService_GetRootSetting_Call) Return(_a0 *models.Setting, _a1 error) *ISettingService_GetRootSetting_Call
func (*ISettingService_GetRootSetting_Call) Run ¶
func (_c *ISettingService_GetRootSetting_Call) Run(run func(ctx context.Context, name string)) *ISettingService_GetRootSetting_Call
func (*ISettingService_GetRootSetting_Call) RunAndReturn ¶
func (_c *ISettingService_GetRootSetting_Call) RunAndReturn(run func(context.Context, string) (*models.Setting, error)) *ISettingService_GetRootSetting_Call
type ISettingService_GetRootSettingsByNames_Call ¶
ISettingService_GetRootSettingsByNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRootSettingsByNames'
func (*ISettingService_GetRootSettingsByNames_Call) Return ¶
func (_c *ISettingService_GetRootSettingsByNames_Call) Return(_a0 []*models.Setting, _a1 error) *ISettingService_GetRootSettingsByNames_Call
func (*ISettingService_GetRootSettingsByNames_Call) Run ¶
func (_c *ISettingService_GetRootSettingsByNames_Call) Run(run func(ctx context.Context, names []string)) *ISettingService_GetRootSettingsByNames_Call
func (*ISettingService_GetRootSettingsByNames_Call) RunAndReturn ¶
func (_c *ISettingService_GetRootSettingsByNames_Call) RunAndReturn(run func(context.Context, []string) ([]*models.Setting, error)) *ISettingService_GetRootSettingsByNames_Call
type ISettingService_GetRootSettingsList_Call ¶
ISettingService_GetRootSettingsList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRootSettingsList'
func (*ISettingService_GetRootSettingsList_Call) Return ¶
func (_c *ISettingService_GetRootSettingsList_Call) Return(_a0 []setting.Dto, _a1 error) *ISettingService_GetRootSettingsList_Call
func (*ISettingService_GetRootSettingsList_Call) Run ¶
func (_c *ISettingService_GetRootSettingsList_Call) Run(run func(ctx context.Context)) *ISettingService_GetRootSettingsList_Call
func (*ISettingService_GetRootSettingsList_Call) RunAndReturn ¶
func (_c *ISettingService_GetRootSettingsList_Call) RunAndReturn(run func(context.Context) ([]setting.Dto, error)) *ISettingService_GetRootSettingsList_Call
type ISettingService_GetRootSettings_Call ¶
ISettingService_GetRootSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRootSettings'
func (*ISettingService_GetRootSettings_Call) Return ¶
func (_c *ISettingService_GetRootSettings_Call) Return(_a0 []*models.Setting, _a1 error) *ISettingService_GetRootSettings_Call
func (*ISettingService_GetRootSettings_Call) Run ¶
func (_c *ISettingService_GetRootSettings_Call) Run(run func(ctx context.Context)) *ISettingService_GetRootSettings_Call
func (*ISettingService_GetRootSettings_Call) RunAndReturn ¶
func (_c *ISettingService_GetRootSettings_Call) RunAndReturn(run func(context.Context) ([]*models.Setting, error)) *ISettingService_GetRootSettings_Call
type ISettingService_Is2faRequired_Call ¶
ISettingService_Is2faRequired_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Is2faRequired'
func (*ISettingService_Is2faRequired_Call) Return ¶
func (_c *ISettingService_Is2faRequired_Call) Return(_a0 bool) *ISettingService_Is2faRequired_Call
func (*ISettingService_Is2faRequired_Call) Run ¶
func (_c *ISettingService_Is2faRequired_Call) Run(run func(name string)) *ISettingService_Is2faRequired_Call
func (*ISettingService_Is2faRequired_Call) RunAndReturn ¶
func (_c *ISettingService_Is2faRequired_Call) RunAndReturn(run func(string) bool) *ISettingService_Is2faRequired_Call
type ISettingService_RemoveRootSetting_Call ¶
ISettingService_RemoveRootSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveRootSetting'
func (*ISettingService_RemoveRootSetting_Call) Return ¶
func (_c *ISettingService_RemoveRootSetting_Call) Return(_a0 error) *ISettingService_RemoveRootSetting_Call
func (*ISettingService_RemoveRootSetting_Call) Run ¶
func (_c *ISettingService_RemoveRootSetting_Call) Run(run func(ctx context.Context, name string)) *ISettingService_RemoveRootSetting_Call
func (*ISettingService_RemoveRootSetting_Call) RunAndReturn ¶
func (_c *ISettingService_RemoveRootSetting_Call) RunAndReturn(run func(context.Context, string) error) *ISettingService_RemoveRootSetting_Call
type ISettingService_RemoveSetting_Call ¶
ISettingService_RemoveSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveSetting'
func (*ISettingService_RemoveSetting_Call) Return ¶
func (_c *ISettingService_RemoveSetting_Call) Return(_a0 error) *ISettingService_RemoveSetting_Call
func (*ISettingService_RemoveSetting_Call) Run ¶
func (_c *ISettingService_RemoveSetting_Call) Run(run func(ctx context.Context, user *models.User, name string)) *ISettingService_RemoveSetting_Call
func (*ISettingService_RemoveSetting_Call) RunAndReturn ¶
func (_c *ISettingService_RemoveSetting_Call) RunAndReturn(run func(context.Context, *models.User, string) error) *ISettingService_RemoveSetting_Call
type ISettingService_SetModelSetting_Call ¶
ISettingService_SetModelSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetModelSetting'
func (*ISettingService_SetModelSetting_Call) Return ¶
func (_c *ISettingService_SetModelSetting_Call) Return(_a0 error) *ISettingService_SetModelSetting_Call
func (*ISettingService_SetModelSetting_Call) Run ¶
func (_c *ISettingService_SetModelSetting_Call) Run(run func(ctx context.Context, dto setting.UpdateDTO, option ...repos.Option)) *ISettingService_SetModelSetting_Call
func (*ISettingService_SetModelSetting_Call) RunAndReturn ¶
func (_c *ISettingService_SetModelSetting_Call) RunAndReturn(run func(context.Context, setting.UpdateDTO, ...repos.Option) error) *ISettingService_SetModelSetting_Call
type ISettingService_SetRootSetting_Call ¶
ISettingService_SetRootSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetRootSetting'
func (*ISettingService_SetRootSetting_Call) Return ¶
func (_c *ISettingService_SetRootSetting_Call) Return(_a0 *models.Setting, _a1 error) *ISettingService_SetRootSetting_Call
func (*ISettingService_SetRootSetting_Call) Run ¶
func (_c *ISettingService_SetRootSetting_Call) Run(run func(ctx context.Context, name string, value string)) *ISettingService_SetRootSetting_Call
func (*ISettingService_SetRootSetting_Call) RunAndReturn ¶
func (_c *ISettingService_SetRootSetting_Call) RunAndReturn(run func(context.Context, string, string) (*models.Setting, error)) *ISettingService_SetRootSetting_Call