Documentation ¶
Index ¶
- type HandlerDef
- type HandlerDef_Expecter
- type HandlerDef_Graphql_Call
- type HandlerDef_Playground_Call
- type HandlerDef_SomeWebhookHandler_Call
- func (_c *HandlerDef_SomeWebhookHandler_Call) Return() *HandlerDef_SomeWebhookHandler_Call
- func (_c *HandlerDef_SomeWebhookHandler_Call) Run(run func(c *gin.Context, e types.IWorker)) *HandlerDef_SomeWebhookHandler_Call
- func (_c *HandlerDef_SomeWebhookHandler_Call) RunAndReturn(run func(*gin.Context, types.IWorker)) *HandlerDef_SomeWebhookHandler_Call
- type IAuth
- func (_m *IAuth) CurrentUser(ctx context.Context) (*types.User, error)
- func (_m *IAuth) EXPECT() *IAuth_Expecter
- func (_m *IAuth) GenerateToken(ctx context.Context, email string, duration time.Duration) (string, error)
- func (_m *IAuth) Login(ctx context.Context, li types.LoginInput) (*types.JWT, error)
- func (_m *IAuth) RefreshToken(ctx context.Context, jwt types.JWT) (*types.JWT, error)
- func (_m *IAuth) SetCurrentUser(ctx context.Context, user *types.User) context.Context
- func (_m *IAuth) Signup(ctx context.Context, newuser types.User, password string) (*types.JWT, error)
- func (_m *IAuth) ValidateToken(ctx context.Context, tokenStr string) (*types.Claims, error)
- type IAuth_CurrentUser_Call
- func (_c *IAuth_CurrentUser_Call) Return(_a0 *types.User, _a1 error) *IAuth_CurrentUser_Call
- func (_c *IAuth_CurrentUser_Call) Run(run func(ctx context.Context)) *IAuth_CurrentUser_Call
- func (_c *IAuth_CurrentUser_Call) RunAndReturn(run func(context.Context) (*types.User, error)) *IAuth_CurrentUser_Call
- type IAuth_Expecter
- func (_e *IAuth_Expecter) CurrentUser(ctx interface{}) *IAuth_CurrentUser_Call
- func (_e *IAuth_Expecter) GenerateToken(ctx interface{}, email interface{}, duration interface{}) *IAuth_GenerateToken_Call
- func (_e *IAuth_Expecter) Login(ctx interface{}, li interface{}) *IAuth_Login_Call
- func (_e *IAuth_Expecter) RefreshToken(ctx interface{}, jwt interface{}) *IAuth_RefreshToken_Call
- func (_e *IAuth_Expecter) SetCurrentUser(ctx interface{}, user interface{}) *IAuth_SetCurrentUser_Call
- func (_e *IAuth_Expecter) Signup(ctx interface{}, newuser interface{}, password interface{}) *IAuth_Signup_Call
- func (_e *IAuth_Expecter) ValidateToken(ctx interface{}, tokenStr interface{}) *IAuth_ValidateToken_Call
- type IAuth_GenerateToken_Call
- func (_c *IAuth_GenerateToken_Call) Return(_a0 string, _a1 error) *IAuth_GenerateToken_Call
- func (_c *IAuth_GenerateToken_Call) Run(run func(ctx context.Context, email string, duration time.Duration)) *IAuth_GenerateToken_Call
- func (_c *IAuth_GenerateToken_Call) RunAndReturn(run func(context.Context, string, time.Duration) (string, error)) *IAuth_GenerateToken_Call
- type IAuth_Login_Call
- func (_c *IAuth_Login_Call) Return(_a0 *types.JWT, _a1 error) *IAuth_Login_Call
- func (_c *IAuth_Login_Call) Run(run func(ctx context.Context, li types.LoginInput)) *IAuth_Login_Call
- func (_c *IAuth_Login_Call) RunAndReturn(run func(context.Context, types.LoginInput) (*types.JWT, error)) *IAuth_Login_Call
- type IAuth_RefreshToken_Call
- func (_c *IAuth_RefreshToken_Call) Return(_a0 *types.JWT, _a1 error) *IAuth_RefreshToken_Call
- func (_c *IAuth_RefreshToken_Call) Run(run func(ctx context.Context, jwt types.JWT)) *IAuth_RefreshToken_Call
- func (_c *IAuth_RefreshToken_Call) RunAndReturn(run func(context.Context, types.JWT) (*types.JWT, error)) *IAuth_RefreshToken_Call
- type IAuth_SetCurrentUser_Call
- func (_c *IAuth_SetCurrentUser_Call) Return(_a0 context.Context) *IAuth_SetCurrentUser_Call
- func (_c *IAuth_SetCurrentUser_Call) Run(run func(ctx context.Context, user *types.User)) *IAuth_SetCurrentUser_Call
- func (_c *IAuth_SetCurrentUser_Call) RunAndReturn(run func(context.Context, *types.User) context.Context) *IAuth_SetCurrentUser_Call
- type IAuth_Signup_Call
- func (_c *IAuth_Signup_Call) Return(_a0 *types.JWT, _a1 error) *IAuth_Signup_Call
- func (_c *IAuth_Signup_Call) Run(run func(ctx context.Context, newuser types.User, password string)) *IAuth_Signup_Call
- func (_c *IAuth_Signup_Call) RunAndReturn(run func(context.Context, types.User, string) (*types.JWT, error)) *IAuth_Signup_Call
- type IAuth_ValidateToken_Call
- func (_c *IAuth_ValidateToken_Call) Return(_a0 *types.Claims, _a1 error) *IAuth_ValidateToken_Call
- func (_c *IAuth_ValidateToken_Call) Run(run func(ctx context.Context, tokenStr string)) *IAuth_ValidateToken_Call
- func (_c *IAuth_ValidateToken_Call) RunAndReturn(run func(context.Context, string) (*types.Claims, error)) *IAuth_ValidateToken_Call
- type IGenericRepo
- func (_m *IGenericRepo[T]) Archive(entity *T) error
- func (_m *IGenericRepo[T]) Connection(tx *gorm.DB, tableName string, filter []types.FilterInput, sortBy string, ...) ([]*T, *types.PageInfo, error)
- func (_m *IGenericRepo[T]) Create(entity *T) (*T, error)
- func (_m *IGenericRepo[T]) Delete(entity *T) error
- func (_m *IGenericRepo[T]) EXPECT() *IGenericRepo_Expecter[T]
- func (_m *IGenericRepo[T]) FindBy(filters []types.Filter, preloads ...string) (*T, error)
- func (_m *IGenericRepo[T]) FuzzyFindBy(key string, value interface{}) ([]*T, error)
- func (_m *IGenericRepo[T]) ListBy(filters []types.Filter, preloads ...string) ([]*T, error)
- func (_m *IGenericRepo[T]) Update(entity *T) (*T, error)
- type IGenericRepo_Archive_Call
- type IGenericRepo_Connection_Call
- func (_c *IGenericRepo_Connection_Call[T]) Return(_a0 []*T, _a1 *types.PageInfo, _a2 error) *IGenericRepo_Connection_Call[T]
- func (_c *IGenericRepo_Connection_Call[T]) Run(...) *IGenericRepo_Connection_Call[T]
- func (_c *IGenericRepo_Connection_Call[T]) RunAndReturn(...) *IGenericRepo_Connection_Call[T]
- type IGenericRepo_Create_Call
- type IGenericRepo_Delete_Call
- type IGenericRepo_Expecter
- func (_e *IGenericRepo_Expecter[T]) Archive(entity interface{}) *IGenericRepo_Archive_Call[T]
- func (_e *IGenericRepo_Expecter[T]) Connection(tx interface{}, tableName interface{}, filter interface{}, sortBy interface{}, ...) *IGenericRepo_Connection_Call[T]
- func (_e *IGenericRepo_Expecter[T]) Create(entity interface{}) *IGenericRepo_Create_Call[T]
- func (_e *IGenericRepo_Expecter[T]) Delete(entity interface{}) *IGenericRepo_Delete_Call[T]
- func (_e *IGenericRepo_Expecter[T]) FindBy(filters interface{}, preloads ...interface{}) *IGenericRepo_FindBy_Call[T]
- func (_e *IGenericRepo_Expecter[T]) FuzzyFindBy(key interface{}, value interface{}) *IGenericRepo_FuzzyFindBy_Call[T]
- func (_e *IGenericRepo_Expecter[T]) ListBy(filters interface{}, preloads ...interface{}) *IGenericRepo_ListBy_Call[T]
- func (_e *IGenericRepo_Expecter[T]) Update(entity interface{}) *IGenericRepo_Update_Call[T]
- type IGenericRepo_FindBy_Call
- func (_c *IGenericRepo_FindBy_Call[T]) Return(_a0 *T, _a1 error) *IGenericRepo_FindBy_Call[T]
- func (_c *IGenericRepo_FindBy_Call[T]) Run(run func(filters []types.Filter, preloads ...string)) *IGenericRepo_FindBy_Call[T]
- func (_c *IGenericRepo_FindBy_Call[T]) RunAndReturn(run func([]types.Filter, ...string) (*T, error)) *IGenericRepo_FindBy_Call[T]
- type IGenericRepo_FuzzyFindBy_Call
- func (_c *IGenericRepo_FuzzyFindBy_Call[T]) Return(_a0 []*T, _a1 error) *IGenericRepo_FuzzyFindBy_Call[T]
- func (_c *IGenericRepo_FuzzyFindBy_Call[T]) Run(run func(key string, value interface{})) *IGenericRepo_FuzzyFindBy_Call[T]
- func (_c *IGenericRepo_FuzzyFindBy_Call[T]) RunAndReturn(run func(string, interface{}) ([]*T, error)) *IGenericRepo_FuzzyFindBy_Call[T]
- type IGenericRepo_ListBy_Call
- func (_c *IGenericRepo_ListBy_Call[T]) Return(_a0 []*T, _a1 error) *IGenericRepo_ListBy_Call[T]
- func (_c *IGenericRepo_ListBy_Call[T]) Run(run func(filters []types.Filter, preloads ...string)) *IGenericRepo_ListBy_Call[T]
- func (_c *IGenericRepo_ListBy_Call[T]) RunAndReturn(run func([]types.Filter, ...string) ([]*T, error)) *IGenericRepo_ListBy_Call[T]
- type IGenericRepo_Update_Call
- type IQueue
- func (_m *IQueue) ArchiveTask(ctx context.Context, queueName string, taskId string) error
- func (_m *IQueue) Clear(ctx context.Context, name string) ([]*asynq.TaskInfo, error)
- func (_m *IQueue) DeleteTask(ctx context.Context, queueName string, taskId string) error
- func (_m *IQueue) EXPECT() *IQueue_Expecter
- func (_m *IQueue) Enqueue(ctx context.Context, task *asynq.Task, opts ...asynq.Option) (*asynq.TaskInfo, error)
- func (_m *IQueue) Get(ctx context.Context, name string) (*asynq.QueueInfo, error)
- func (_m *IQueue) RunTask(ctx context.Context, queueName string, taskId string) error
- func (_m *IQueue) StartServer(ctx context.Context, workPkg types.IWorker)
- func (_m *IQueue) TogglePause(ctx context.Context, name string) error
- type IQueue_ArchiveTask_Call
- func (_c *IQueue_ArchiveTask_Call) Return(_a0 error) *IQueue_ArchiveTask_Call
- func (_c *IQueue_ArchiveTask_Call) Run(run func(ctx context.Context, queueName string, taskId string)) *IQueue_ArchiveTask_Call
- func (_c *IQueue_ArchiveTask_Call) RunAndReturn(run func(context.Context, string, string) error) *IQueue_ArchiveTask_Call
- type IQueue_Clear_Call
- func (_c *IQueue_Clear_Call) Return(_a0 []*asynq.TaskInfo, _a1 error) *IQueue_Clear_Call
- func (_c *IQueue_Clear_Call) Run(run func(ctx context.Context, name string)) *IQueue_Clear_Call
- func (_c *IQueue_Clear_Call) RunAndReturn(run func(context.Context, string) ([]*asynq.TaskInfo, error)) *IQueue_Clear_Call
- type IQueue_DeleteTask_Call
- func (_c *IQueue_DeleteTask_Call) Return(_a0 error) *IQueue_DeleteTask_Call
- func (_c *IQueue_DeleteTask_Call) Run(run func(ctx context.Context, queueName string, taskId string)) *IQueue_DeleteTask_Call
- func (_c *IQueue_DeleteTask_Call) RunAndReturn(run func(context.Context, string, string) error) *IQueue_DeleteTask_Call
- type IQueue_Enqueue_Call
- type IQueue_Expecter
- func (_e *IQueue_Expecter) ArchiveTask(ctx interface{}, queueName interface{}, taskId interface{}) *IQueue_ArchiveTask_Call
- func (_e *IQueue_Expecter) Clear(ctx interface{}, name interface{}) *IQueue_Clear_Call
- func (_e *IQueue_Expecter) DeleteTask(ctx interface{}, queueName interface{}, taskId interface{}) *IQueue_DeleteTask_Call
- func (_e *IQueue_Expecter) Enqueue(ctx interface{}, task interface{}, opts ...interface{}) *IQueue_Enqueue_Call
- func (_e *IQueue_Expecter) Get(ctx interface{}, name interface{}) *IQueue_Get_Call
- func (_e *IQueue_Expecter) RunTask(ctx interface{}, queueName interface{}, taskId interface{}) *IQueue_RunTask_Call
- func (_e *IQueue_Expecter) StartServer(ctx interface{}, workPkg interface{}) *IQueue_StartServer_Call
- func (_e *IQueue_Expecter) TogglePause(ctx interface{}, name interface{}) *IQueue_TogglePause_Call
- type IQueue_Get_Call
- type IQueue_RunTask_Call
- func (_c *IQueue_RunTask_Call) Return(_a0 error) *IQueue_RunTask_Call
- func (_c *IQueue_RunTask_Call) Run(run func(ctx context.Context, queueName string, taskId string)) *IQueue_RunTask_Call
- func (_c *IQueue_RunTask_Call) RunAndReturn(run func(context.Context, string, string) error) *IQueue_RunTask_Call
- type IQueue_StartServer_Call
- func (_c *IQueue_StartServer_Call) Return() *IQueue_StartServer_Call
- func (_c *IQueue_StartServer_Call) Run(run func(ctx context.Context, workPkg types.IWorker)) *IQueue_StartServer_Call
- func (_c *IQueue_StartServer_Call) RunAndReturn(run func(context.Context, types.IWorker)) *IQueue_StartServer_Call
- type IQueue_TogglePause_Call
- type ISearch
- type ISearch_Apples_Call
- type ISearch_Expecter
- type ISomeService
- type ISomeService_Expecter
- type ISomeService_SomeMethod_Call
- func (_c *ISomeService_SomeMethod_Call) Return(_a0 error) *ISomeService_SomeMethod_Call
- func (_c *ISomeService_SomeMethod_Call) Run(run func(ctx context.Context)) *ISomeService_SomeMethod_Call
- func (_c *ISomeService_SomeMethod_Call) RunAndReturn(run func(context.Context) error) *ISomeService_SomeMethod_Call
- type IWorker
- type IWorker_Expecter
- type IWorker_HandleProcessSomeDataTask_Call
- func (_c *IWorker_HandleProcessSomeDataTask_Call) Return(_a0 error) *IWorker_HandleProcessSomeDataTask_Call
- func (_c *IWorker_HandleProcessSomeDataTask_Call) Run(run func(ctx context.Context, t *asynq.Task)) *IWorker_HandleProcessSomeDataTask_Call
- func (_c *IWorker_HandleProcessSomeDataTask_Call) RunAndReturn(run func(context.Context, *asynq.Task) error) *IWorker_HandleProcessSomeDataTask_Call
- type Modeler
- type Modeler_Expecter
- type Modeler_GetID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerDef ¶
HandlerDef is an autogenerated mock type for the HandlerDef type
func NewHandlerDef ¶
func NewHandlerDef(t interface { mock.TestingT Cleanup(func()) }) *HandlerDef
NewHandlerDef creates a new instance of HandlerDef. 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 (*HandlerDef) EXPECT ¶
func (_m *HandlerDef) EXPECT() *HandlerDef_Expecter
func (*HandlerDef) Graphql ¶
func (_m *HandlerDef) Graphql(repo interface{}) gin.HandlerFunc
Graphql provides a mock function with given fields: repo
func (*HandlerDef) Playground ¶
func (_m *HandlerDef) Playground() gin.HandlerFunc
Playground provides a mock function with given fields:
func (*HandlerDef) SomeWebhookHandler ¶
func (_m *HandlerDef) SomeWebhookHandler(c *gin.Context, e types.IWorker)
SomeWebhookHandler provides a mock function with given fields: c, e
type HandlerDef_Expecter ¶
type HandlerDef_Expecter struct {
// contains filtered or unexported fields
}
func (*HandlerDef_Expecter) Graphql ¶
func (_e *HandlerDef_Expecter) Graphql(repo interface{}) *HandlerDef_Graphql_Call
Graphql is a helper method to define mock.On call
- repo interface{}
func (*HandlerDef_Expecter) Playground ¶
func (_e *HandlerDef_Expecter) Playground() *HandlerDef_Playground_Call
Playground is a helper method to define mock.On call
func (*HandlerDef_Expecter) SomeWebhookHandler ¶
func (_e *HandlerDef_Expecter) SomeWebhookHandler(c interface{}, e interface{}) *HandlerDef_SomeWebhookHandler_Call
SomeWebhookHandler is a helper method to define mock.On call
- c *gin.Context
- e types.IWorker
type HandlerDef_Graphql_Call ¶
HandlerDef_Graphql_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Graphql'
func (*HandlerDef_Graphql_Call) Return ¶
func (_c *HandlerDef_Graphql_Call) Return(_a0 gin.HandlerFunc) *HandlerDef_Graphql_Call
func (*HandlerDef_Graphql_Call) Run ¶
func (_c *HandlerDef_Graphql_Call) Run(run func(repo interface{})) *HandlerDef_Graphql_Call
func (*HandlerDef_Graphql_Call) RunAndReturn ¶
func (_c *HandlerDef_Graphql_Call) RunAndReturn(run func(interface{}) gin.HandlerFunc) *HandlerDef_Graphql_Call
type HandlerDef_Playground_Call ¶
HandlerDef_Playground_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Playground'
func (*HandlerDef_Playground_Call) Return ¶
func (_c *HandlerDef_Playground_Call) Return(_a0 gin.HandlerFunc) *HandlerDef_Playground_Call
func (*HandlerDef_Playground_Call) Run ¶
func (_c *HandlerDef_Playground_Call) Run(run func()) *HandlerDef_Playground_Call
func (*HandlerDef_Playground_Call) RunAndReturn ¶
func (_c *HandlerDef_Playground_Call) RunAndReturn(run func() gin.HandlerFunc) *HandlerDef_Playground_Call
type HandlerDef_SomeWebhookHandler_Call ¶
HandlerDef_SomeWebhookHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SomeWebhookHandler'
func (*HandlerDef_SomeWebhookHandler_Call) Return ¶
func (_c *HandlerDef_SomeWebhookHandler_Call) Return() *HandlerDef_SomeWebhookHandler_Call
func (*HandlerDef_SomeWebhookHandler_Call) Run ¶
func (_c *HandlerDef_SomeWebhookHandler_Call) Run(run func(c *gin.Context, e types.IWorker)) *HandlerDef_SomeWebhookHandler_Call
func (*HandlerDef_SomeWebhookHandler_Call) RunAndReturn ¶
func (_c *HandlerDef_SomeWebhookHandler_Call) RunAndReturn(run func(*gin.Context, types.IWorker)) *HandlerDef_SomeWebhookHandler_Call
type IAuth ¶
IAuth is an autogenerated mock type for the IAuth type
func NewIAuth ¶
NewIAuth creates a new instance of IAuth. 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 (*IAuth) CurrentUser ¶
CurrentUser provides a mock function with given fields: ctx
func (*IAuth) EXPECT ¶
func (_m *IAuth) EXPECT() *IAuth_Expecter
func (*IAuth) GenerateToken ¶
func (_m *IAuth) GenerateToken(ctx context.Context, email string, duration time.Duration) (string, error)
GenerateToken provides a mock function with given fields: ctx, email, duration
func (*IAuth) RefreshToken ¶
RefreshToken provides a mock function with given fields: ctx, jwt
func (*IAuth) SetCurrentUser ¶
SetCurrentUser provides a mock function with given fields: ctx, user
type IAuth_CurrentUser_Call ¶
IAuth_CurrentUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentUser'
func (*IAuth_CurrentUser_Call) Return ¶
func (_c *IAuth_CurrentUser_Call) Return(_a0 *types.User, _a1 error) *IAuth_CurrentUser_Call
func (*IAuth_CurrentUser_Call) Run ¶
func (_c *IAuth_CurrentUser_Call) Run(run func(ctx context.Context)) *IAuth_CurrentUser_Call
func (*IAuth_CurrentUser_Call) RunAndReturn ¶
func (_c *IAuth_CurrentUser_Call) RunAndReturn(run func(context.Context) (*types.User, error)) *IAuth_CurrentUser_Call
type IAuth_Expecter ¶
type IAuth_Expecter struct {
// contains filtered or unexported fields
}
func (*IAuth_Expecter) CurrentUser ¶
func (_e *IAuth_Expecter) CurrentUser(ctx interface{}) *IAuth_CurrentUser_Call
CurrentUser is a helper method to define mock.On call
- ctx context.Context
func (*IAuth_Expecter) GenerateToken ¶
func (_e *IAuth_Expecter) GenerateToken(ctx interface{}, email interface{}, duration interface{}) *IAuth_GenerateToken_Call
GenerateToken is a helper method to define mock.On call
- ctx context.Context
- email string
- duration time.Duration
func (*IAuth_Expecter) Login ¶
func (_e *IAuth_Expecter) Login(ctx interface{}, li interface{}) *IAuth_Login_Call
Login is a helper method to define mock.On call
- ctx context.Context
- li types.LoginInput
func (*IAuth_Expecter) RefreshToken ¶
func (_e *IAuth_Expecter) RefreshToken(ctx interface{}, jwt interface{}) *IAuth_RefreshToken_Call
RefreshToken is a helper method to define mock.On call
- ctx context.Context
- jwt types.JWT
func (*IAuth_Expecter) SetCurrentUser ¶
func (_e *IAuth_Expecter) SetCurrentUser(ctx interface{}, user interface{}) *IAuth_SetCurrentUser_Call
SetCurrentUser is a helper method to define mock.On call
- ctx context.Context
- user *types.User
func (*IAuth_Expecter) Signup ¶
func (_e *IAuth_Expecter) Signup(ctx interface{}, newuser interface{}, password interface{}) *IAuth_Signup_Call
Signup is a helper method to define mock.On call
- ctx context.Context
- newuser types.User
- password string
func (*IAuth_Expecter) ValidateToken ¶
func (_e *IAuth_Expecter) ValidateToken(ctx interface{}, tokenStr interface{}) *IAuth_ValidateToken_Call
ValidateToken is a helper method to define mock.On call
- ctx context.Context
- tokenStr string
type IAuth_GenerateToken_Call ¶
IAuth_GenerateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateToken'
func (*IAuth_GenerateToken_Call) Return ¶
func (_c *IAuth_GenerateToken_Call) Return(_a0 string, _a1 error) *IAuth_GenerateToken_Call
func (*IAuth_GenerateToken_Call) Run ¶
func (_c *IAuth_GenerateToken_Call) Run(run func(ctx context.Context, email string, duration time.Duration)) *IAuth_GenerateToken_Call
func (*IAuth_GenerateToken_Call) RunAndReturn ¶
func (_c *IAuth_GenerateToken_Call) RunAndReturn(run func(context.Context, string, time.Duration) (string, error)) *IAuth_GenerateToken_Call
type IAuth_Login_Call ¶
IAuth_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
func (*IAuth_Login_Call) Return ¶
func (_c *IAuth_Login_Call) Return(_a0 *types.JWT, _a1 error) *IAuth_Login_Call
func (*IAuth_Login_Call) Run ¶
func (_c *IAuth_Login_Call) Run(run func(ctx context.Context, li types.LoginInput)) *IAuth_Login_Call
func (*IAuth_Login_Call) RunAndReturn ¶
func (_c *IAuth_Login_Call) RunAndReturn(run func(context.Context, types.LoginInput) (*types.JWT, error)) *IAuth_Login_Call
type IAuth_RefreshToken_Call ¶
IAuth_RefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshToken'
func (*IAuth_RefreshToken_Call) Return ¶
func (_c *IAuth_RefreshToken_Call) Return(_a0 *types.JWT, _a1 error) *IAuth_RefreshToken_Call
func (*IAuth_RefreshToken_Call) Run ¶
func (_c *IAuth_RefreshToken_Call) Run(run func(ctx context.Context, jwt types.JWT)) *IAuth_RefreshToken_Call
func (*IAuth_RefreshToken_Call) RunAndReturn ¶
func (_c *IAuth_RefreshToken_Call) RunAndReturn(run func(context.Context, types.JWT) (*types.JWT, error)) *IAuth_RefreshToken_Call
type IAuth_SetCurrentUser_Call ¶
IAuth_SetCurrentUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCurrentUser'
func (*IAuth_SetCurrentUser_Call) Return ¶
func (_c *IAuth_SetCurrentUser_Call) Return(_a0 context.Context) *IAuth_SetCurrentUser_Call
func (*IAuth_SetCurrentUser_Call) Run ¶
func (_c *IAuth_SetCurrentUser_Call) Run(run func(ctx context.Context, user *types.User)) *IAuth_SetCurrentUser_Call
func (*IAuth_SetCurrentUser_Call) RunAndReturn ¶
func (_c *IAuth_SetCurrentUser_Call) RunAndReturn(run func(context.Context, *types.User) context.Context) *IAuth_SetCurrentUser_Call
type IAuth_Signup_Call ¶
IAuth_Signup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signup'
func (*IAuth_Signup_Call) Return ¶
func (_c *IAuth_Signup_Call) Return(_a0 *types.JWT, _a1 error) *IAuth_Signup_Call
func (*IAuth_Signup_Call) Run ¶
func (_c *IAuth_Signup_Call) Run(run func(ctx context.Context, newuser types.User, password string)) *IAuth_Signup_Call
func (*IAuth_Signup_Call) RunAndReturn ¶
func (_c *IAuth_Signup_Call) RunAndReturn(run func(context.Context, types.User, string) (*types.JWT, error)) *IAuth_Signup_Call
type IAuth_ValidateToken_Call ¶
IAuth_ValidateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateToken'
func (*IAuth_ValidateToken_Call) Return ¶
func (_c *IAuth_ValidateToken_Call) Return(_a0 *types.Claims, _a1 error) *IAuth_ValidateToken_Call
func (*IAuth_ValidateToken_Call) Run ¶
func (_c *IAuth_ValidateToken_Call) Run(run func(ctx context.Context, tokenStr string)) *IAuth_ValidateToken_Call
func (*IAuth_ValidateToken_Call) RunAndReturn ¶
func (_c *IAuth_ValidateToken_Call) RunAndReturn(run func(context.Context, string) (*types.Claims, error)) *IAuth_ValidateToken_Call
type IGenericRepo ¶
IGenericRepo is an autogenerated mock type for the IGenericRepo type
func NewIGenericRepo ¶
func NewIGenericRepo[T interface{}](t interface { mock.TestingT Cleanup(func()) }) *IGenericRepo[T]
NewIGenericRepo creates a new instance of IGenericRepo. 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 (*IGenericRepo[T]) Archive ¶
func (_m *IGenericRepo[T]) Archive(entity *T) error
Archive provides a mock function with given fields: entity
func (*IGenericRepo[T]) Connection ¶
func (_m *IGenericRepo[T]) Connection(tx *gorm.DB, tableName string, filter []types.FilterInput, sortBy string, direction types.AscOrDesc, limit int, after int) ([]*T, *types.PageInfo, error)
Connection provides a mock function with given fields: tx, tableName, filter, sortBy, direction, limit, after
func (*IGenericRepo[T]) Create ¶
func (_m *IGenericRepo[T]) Create(entity *T) (*T, error)
Create provides a mock function with given fields: entity
func (*IGenericRepo[T]) Delete ¶
func (_m *IGenericRepo[T]) Delete(entity *T) error
Delete provides a mock function with given fields: entity
func (*IGenericRepo[T]) EXPECT ¶
func (_m *IGenericRepo[T]) EXPECT() *IGenericRepo_Expecter[T]
func (*IGenericRepo[T]) FindBy ¶
func (_m *IGenericRepo[T]) FindBy(filters []types.Filter, preloads ...string) (*T, error)
FindBy provides a mock function with given fields: filters, preloads
func (*IGenericRepo[T]) FuzzyFindBy ¶
func (_m *IGenericRepo[T]) FuzzyFindBy(key string, value interface{}) ([]*T, error)
FuzzyFindBy provides a mock function with given fields: key, value
func (*IGenericRepo[T]) ListBy ¶
func (_m *IGenericRepo[T]) ListBy(filters []types.Filter, preloads ...string) ([]*T, error)
ListBy provides a mock function with given fields: filters, preloads
func (*IGenericRepo[T]) Update ¶
func (_m *IGenericRepo[T]) Update(entity *T) (*T, error)
Update provides a mock function with given fields: entity
type IGenericRepo_Archive_Call ¶
IGenericRepo_Archive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Archive'
func (*IGenericRepo_Archive_Call[T]) Return ¶
func (_c *IGenericRepo_Archive_Call[T]) Return(_a0 error) *IGenericRepo_Archive_Call[T]
func (*IGenericRepo_Archive_Call[T]) Run ¶
func (_c *IGenericRepo_Archive_Call[T]) Run(run func(entity *T)) *IGenericRepo_Archive_Call[T]
func (*IGenericRepo_Archive_Call[T]) RunAndReturn ¶
func (_c *IGenericRepo_Archive_Call[T]) RunAndReturn(run func(*T) error) *IGenericRepo_Archive_Call[T]
type IGenericRepo_Connection_Call ¶
IGenericRepo_Connection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connection'
func (*IGenericRepo_Connection_Call[T]) Return ¶
func (_c *IGenericRepo_Connection_Call[T]) Return(_a0 []*T, _a1 *types.PageInfo, _a2 error) *IGenericRepo_Connection_Call[T]
func (*IGenericRepo_Connection_Call[T]) Run ¶
func (_c *IGenericRepo_Connection_Call[T]) Run(run func(tx *gorm.DB, tableName string, filter []types.FilterInput, sortBy string, direction types.AscOrDesc, limit int, after int)) *IGenericRepo_Connection_Call[T]
func (*IGenericRepo_Connection_Call[T]) RunAndReturn ¶
func (_c *IGenericRepo_Connection_Call[T]) RunAndReturn(run func(*gorm.DB, string, []types.FilterInput, string, types.AscOrDesc, int, int) ([]*T, *types.PageInfo, error)) *IGenericRepo_Connection_Call[T]
type IGenericRepo_Create_Call ¶
IGenericRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*IGenericRepo_Create_Call[T]) Return ¶
func (_c *IGenericRepo_Create_Call[T]) Return(_a0 *T, _a1 error) *IGenericRepo_Create_Call[T]
func (*IGenericRepo_Create_Call[T]) Run ¶
func (_c *IGenericRepo_Create_Call[T]) Run(run func(entity *T)) *IGenericRepo_Create_Call[T]
func (*IGenericRepo_Create_Call[T]) RunAndReturn ¶
func (_c *IGenericRepo_Create_Call[T]) RunAndReturn(run func(*T) (*T, error)) *IGenericRepo_Create_Call[T]
type IGenericRepo_Delete_Call ¶
IGenericRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*IGenericRepo_Delete_Call[T]) Return ¶
func (_c *IGenericRepo_Delete_Call[T]) Return(_a0 error) *IGenericRepo_Delete_Call[T]
func (*IGenericRepo_Delete_Call[T]) Run ¶
func (_c *IGenericRepo_Delete_Call[T]) Run(run func(entity *T)) *IGenericRepo_Delete_Call[T]
func (*IGenericRepo_Delete_Call[T]) RunAndReturn ¶
func (_c *IGenericRepo_Delete_Call[T]) RunAndReturn(run func(*T) error) *IGenericRepo_Delete_Call[T]
type IGenericRepo_Expecter ¶
type IGenericRepo_Expecter[T interface{}] struct {
// contains filtered or unexported fields
}
func (*IGenericRepo_Expecter[T]) Archive ¶
func (_e *IGenericRepo_Expecter[T]) Archive(entity interface{}) *IGenericRepo_Archive_Call[T]
Archive is a helper method to define mock.On call
- entity *T
func (*IGenericRepo_Expecter[T]) Connection ¶
func (_e *IGenericRepo_Expecter[T]) Connection(tx interface{}, tableName interface{}, filter interface{}, sortBy interface{}, direction interface{}, limit interface{}, after interface{}) *IGenericRepo_Connection_Call[T]
Connection is a helper method to define mock.On call
- tx *gorm.DB
- tableName string
- filter []types.FilterInput
- sortBy string
- direction types.AscOrDesc
- limit int
- after int
func (*IGenericRepo_Expecter[T]) Create ¶
func (_e *IGenericRepo_Expecter[T]) Create(entity interface{}) *IGenericRepo_Create_Call[T]
Create is a helper method to define mock.On call
- entity *T
func (*IGenericRepo_Expecter[T]) Delete ¶
func (_e *IGenericRepo_Expecter[T]) Delete(entity interface{}) *IGenericRepo_Delete_Call[T]
Delete is a helper method to define mock.On call
- entity *T
func (*IGenericRepo_Expecter[T]) FindBy ¶
func (_e *IGenericRepo_Expecter[T]) FindBy(filters interface{}, preloads ...interface{}) *IGenericRepo_FindBy_Call[T]
FindBy is a helper method to define mock.On call
- filters []types.Filter
- preloads ...string
func (*IGenericRepo_Expecter[T]) FuzzyFindBy ¶
func (_e *IGenericRepo_Expecter[T]) FuzzyFindBy(key interface{}, value interface{}) *IGenericRepo_FuzzyFindBy_Call[T]
FuzzyFindBy is a helper method to define mock.On call
- key string
- value interface{}
func (*IGenericRepo_Expecter[T]) ListBy ¶
func (_e *IGenericRepo_Expecter[T]) ListBy(filters interface{}, preloads ...interface{}) *IGenericRepo_ListBy_Call[T]
ListBy is a helper method to define mock.On call
- filters []types.Filter
- preloads ...string
func (*IGenericRepo_Expecter[T]) Update ¶
func (_e *IGenericRepo_Expecter[T]) Update(entity interface{}) *IGenericRepo_Update_Call[T]
Update is a helper method to define mock.On call
- entity *T
type IGenericRepo_FindBy_Call ¶
IGenericRepo_FindBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindBy'
func (*IGenericRepo_FindBy_Call[T]) Return ¶
func (_c *IGenericRepo_FindBy_Call[T]) Return(_a0 *T, _a1 error) *IGenericRepo_FindBy_Call[T]
func (*IGenericRepo_FindBy_Call[T]) Run ¶
func (_c *IGenericRepo_FindBy_Call[T]) Run(run func(filters []types.Filter, preloads ...string)) *IGenericRepo_FindBy_Call[T]
func (*IGenericRepo_FindBy_Call[T]) RunAndReturn ¶
func (_c *IGenericRepo_FindBy_Call[T]) RunAndReturn(run func([]types.Filter, ...string) (*T, error)) *IGenericRepo_FindBy_Call[T]
type IGenericRepo_FuzzyFindBy_Call ¶
IGenericRepo_FuzzyFindBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FuzzyFindBy'
func (*IGenericRepo_FuzzyFindBy_Call[T]) Return ¶
func (_c *IGenericRepo_FuzzyFindBy_Call[T]) Return(_a0 []*T, _a1 error) *IGenericRepo_FuzzyFindBy_Call[T]
func (*IGenericRepo_FuzzyFindBy_Call[T]) Run ¶
func (_c *IGenericRepo_FuzzyFindBy_Call[T]) Run(run func(key string, value interface{})) *IGenericRepo_FuzzyFindBy_Call[T]
func (*IGenericRepo_FuzzyFindBy_Call[T]) RunAndReturn ¶
func (_c *IGenericRepo_FuzzyFindBy_Call[T]) RunAndReturn(run func(string, interface{}) ([]*T, error)) *IGenericRepo_FuzzyFindBy_Call[T]
type IGenericRepo_ListBy_Call ¶
IGenericRepo_ListBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBy'
func (*IGenericRepo_ListBy_Call[T]) Return ¶
func (_c *IGenericRepo_ListBy_Call[T]) Return(_a0 []*T, _a1 error) *IGenericRepo_ListBy_Call[T]
func (*IGenericRepo_ListBy_Call[T]) Run ¶
func (_c *IGenericRepo_ListBy_Call[T]) Run(run func(filters []types.Filter, preloads ...string)) *IGenericRepo_ListBy_Call[T]
func (*IGenericRepo_ListBy_Call[T]) RunAndReturn ¶
func (_c *IGenericRepo_ListBy_Call[T]) RunAndReturn(run func([]types.Filter, ...string) ([]*T, error)) *IGenericRepo_ListBy_Call[T]
type IGenericRepo_Update_Call ¶
IGenericRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*IGenericRepo_Update_Call[T]) Return ¶
func (_c *IGenericRepo_Update_Call[T]) Return(_a0 *T, _a1 error) *IGenericRepo_Update_Call[T]
func (*IGenericRepo_Update_Call[T]) Run ¶
func (_c *IGenericRepo_Update_Call[T]) Run(run func(entity *T)) *IGenericRepo_Update_Call[T]
func (*IGenericRepo_Update_Call[T]) RunAndReturn ¶
func (_c *IGenericRepo_Update_Call[T]) RunAndReturn(run func(*T) (*T, error)) *IGenericRepo_Update_Call[T]
type IQueue ¶
IQueue is an autogenerated mock type for the IQueue type
func NewIQueue ¶
NewIQueue creates a new instance of IQueue. 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 (*IQueue) ArchiveTask ¶
ArchiveTask provides a mock function with given fields: ctx, queueName, taskId
func (*IQueue) DeleteTask ¶
DeleteTask provides a mock function with given fields: ctx, queueName, taskId
func (*IQueue) EXPECT ¶
func (_m *IQueue) EXPECT() *IQueue_Expecter
func (*IQueue) Enqueue ¶
func (_m *IQueue) Enqueue(ctx context.Context, task *asynq.Task, opts ...asynq.Option) (*asynq.TaskInfo, error)
Enqueue provides a mock function with given fields: ctx, task, opts
func (*IQueue) StartServer ¶
StartServer provides a mock function with given fields: ctx, workPkg
type IQueue_ArchiveTask_Call ¶
IQueue_ArchiveTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ArchiveTask'
func (*IQueue_ArchiveTask_Call) Return ¶
func (_c *IQueue_ArchiveTask_Call) Return(_a0 error) *IQueue_ArchiveTask_Call
func (*IQueue_ArchiveTask_Call) Run ¶
func (_c *IQueue_ArchiveTask_Call) Run(run func(ctx context.Context, queueName string, taskId string)) *IQueue_ArchiveTask_Call
func (*IQueue_ArchiveTask_Call) RunAndReturn ¶
func (_c *IQueue_ArchiveTask_Call) RunAndReturn(run func(context.Context, string, string) error) *IQueue_ArchiveTask_Call
type IQueue_Clear_Call ¶
IQueue_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
func (*IQueue_Clear_Call) Return ¶
func (_c *IQueue_Clear_Call) Return(_a0 []*asynq.TaskInfo, _a1 error) *IQueue_Clear_Call
func (*IQueue_Clear_Call) Run ¶
func (_c *IQueue_Clear_Call) Run(run func(ctx context.Context, name string)) *IQueue_Clear_Call
func (*IQueue_Clear_Call) RunAndReturn ¶
func (_c *IQueue_Clear_Call) RunAndReturn(run func(context.Context, string) ([]*asynq.TaskInfo, error)) *IQueue_Clear_Call
type IQueue_DeleteTask_Call ¶
IQueue_DeleteTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTask'
func (*IQueue_DeleteTask_Call) Return ¶
func (_c *IQueue_DeleteTask_Call) Return(_a0 error) *IQueue_DeleteTask_Call
func (*IQueue_DeleteTask_Call) Run ¶
func (_c *IQueue_DeleteTask_Call) Run(run func(ctx context.Context, queueName string, taskId string)) *IQueue_DeleteTask_Call
func (*IQueue_DeleteTask_Call) RunAndReturn ¶
func (_c *IQueue_DeleteTask_Call) RunAndReturn(run func(context.Context, string, string) error) *IQueue_DeleteTask_Call
type IQueue_Enqueue_Call ¶
IQueue_Enqueue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Enqueue'
func (*IQueue_Enqueue_Call) Return ¶
func (_c *IQueue_Enqueue_Call) Return(_a0 *asynq.TaskInfo, _a1 error) *IQueue_Enqueue_Call
func (*IQueue_Enqueue_Call) Run ¶
func (_c *IQueue_Enqueue_Call) Run(run func(ctx context.Context, task *asynq.Task, opts ...asynq.Option)) *IQueue_Enqueue_Call
func (*IQueue_Enqueue_Call) RunAndReturn ¶
type IQueue_Expecter ¶
type IQueue_Expecter struct {
// contains filtered or unexported fields
}
func (*IQueue_Expecter) ArchiveTask ¶
func (_e *IQueue_Expecter) ArchiveTask(ctx interface{}, queueName interface{}, taskId interface{}) *IQueue_ArchiveTask_Call
ArchiveTask is a helper method to define mock.On call
- ctx context.Context
- queueName string
- taskId string
func (*IQueue_Expecter) Clear ¶
func (_e *IQueue_Expecter) Clear(ctx interface{}, name interface{}) *IQueue_Clear_Call
Clear is a helper method to define mock.On call
- ctx context.Context
- name string
func (*IQueue_Expecter) DeleteTask ¶
func (_e *IQueue_Expecter) DeleteTask(ctx interface{}, queueName interface{}, taskId interface{}) *IQueue_DeleteTask_Call
DeleteTask is a helper method to define mock.On call
- ctx context.Context
- queueName string
- taskId string
func (*IQueue_Expecter) Enqueue ¶
func (_e *IQueue_Expecter) Enqueue(ctx interface{}, task interface{}, opts ...interface{}) *IQueue_Enqueue_Call
Enqueue is a helper method to define mock.On call
- ctx context.Context
- task *asynq.Task
- opts ...asynq.Option
func (*IQueue_Expecter) Get ¶
func (_e *IQueue_Expecter) Get(ctx interface{}, name interface{}) *IQueue_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- name string
func (*IQueue_Expecter) RunTask ¶
func (_e *IQueue_Expecter) RunTask(ctx interface{}, queueName interface{}, taskId interface{}) *IQueue_RunTask_Call
RunTask is a helper method to define mock.On call
- ctx context.Context
- queueName string
- taskId string
func (*IQueue_Expecter) StartServer ¶
func (_e *IQueue_Expecter) StartServer(ctx interface{}, workPkg interface{}) *IQueue_StartServer_Call
StartServer is a helper method to define mock.On call
- ctx context.Context
- workPkg types.IWorker
func (*IQueue_Expecter) TogglePause ¶
func (_e *IQueue_Expecter) TogglePause(ctx interface{}, name interface{}) *IQueue_TogglePause_Call
TogglePause is a helper method to define mock.On call
- ctx context.Context
- name string
type IQueue_Get_Call ¶
IQueue_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*IQueue_Get_Call) Return ¶
func (_c *IQueue_Get_Call) Return(_a0 *asynq.QueueInfo, _a1 error) *IQueue_Get_Call
func (*IQueue_Get_Call) Run ¶
func (_c *IQueue_Get_Call) Run(run func(ctx context.Context, name string)) *IQueue_Get_Call
func (*IQueue_Get_Call) RunAndReturn ¶
func (_c *IQueue_Get_Call) RunAndReturn(run func(context.Context, string) (*asynq.QueueInfo, error)) *IQueue_Get_Call
type IQueue_RunTask_Call ¶
IQueue_RunTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunTask'
func (*IQueue_RunTask_Call) Return ¶
func (_c *IQueue_RunTask_Call) Return(_a0 error) *IQueue_RunTask_Call
func (*IQueue_RunTask_Call) Run ¶
func (_c *IQueue_RunTask_Call) Run(run func(ctx context.Context, queueName string, taskId string)) *IQueue_RunTask_Call
func (*IQueue_RunTask_Call) RunAndReturn ¶
func (_c *IQueue_RunTask_Call) RunAndReturn(run func(context.Context, string, string) error) *IQueue_RunTask_Call
type IQueue_StartServer_Call ¶
IQueue_StartServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartServer'
func (*IQueue_StartServer_Call) Return ¶
func (_c *IQueue_StartServer_Call) Return() *IQueue_StartServer_Call
func (*IQueue_StartServer_Call) Run ¶
func (_c *IQueue_StartServer_Call) Run(run func(ctx context.Context, workPkg types.IWorker)) *IQueue_StartServer_Call
func (*IQueue_StartServer_Call) RunAndReturn ¶
func (_c *IQueue_StartServer_Call) RunAndReturn(run func(context.Context, types.IWorker)) *IQueue_StartServer_Call
type IQueue_TogglePause_Call ¶
IQueue_TogglePause_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TogglePause'
func (*IQueue_TogglePause_Call) Return ¶
func (_c *IQueue_TogglePause_Call) Return(_a0 error) *IQueue_TogglePause_Call
func (*IQueue_TogglePause_Call) Run ¶
func (_c *IQueue_TogglePause_Call) Run(run func(ctx context.Context, name string)) *IQueue_TogglePause_Call
func (*IQueue_TogglePause_Call) RunAndReturn ¶
func (_c *IQueue_TogglePause_Call) RunAndReturn(run func(context.Context, string) error) *IQueue_TogglePause_Call
type ISearch ¶
ISearch is an autogenerated mock type for the ISearch type
func NewISearch ¶
NewISearch creates a new instance of ISearch. 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 (*ISearch) Apples ¶
func (_m *ISearch) Apples(ctx context.Context, input *types.ConnectionInput) (*types.AppleConnection, error)
Apples provides a mock function with given fields: ctx, input
func (*ISearch) EXPECT ¶
func (_m *ISearch) EXPECT() *ISearch_Expecter
type ISearch_Apples_Call ¶
ISearch_Apples_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apples'
func (*ISearch_Apples_Call) Return ¶
func (_c *ISearch_Apples_Call) Return(_a0 *types.AppleConnection, _a1 error) *ISearch_Apples_Call
func (*ISearch_Apples_Call) Run ¶
func (_c *ISearch_Apples_Call) Run(run func(ctx context.Context, input *types.ConnectionInput)) *ISearch_Apples_Call
func (*ISearch_Apples_Call) RunAndReturn ¶
func (_c *ISearch_Apples_Call) RunAndReturn(run func(context.Context, *types.ConnectionInput) (*types.AppleConnection, error)) *ISearch_Apples_Call
type ISearch_Expecter ¶
type ISearch_Expecter struct {
// contains filtered or unexported fields
}
func (*ISearch_Expecter) Apples ¶
func (_e *ISearch_Expecter) Apples(ctx interface{}, input interface{}) *ISearch_Apples_Call
Apples is a helper method to define mock.On call
- ctx context.Context
- input *types.ConnectionInput
type ISomeService ¶
ISomeService is an autogenerated mock type for the ISomeService type
func NewISomeService ¶
func NewISomeService(t interface { mock.TestingT Cleanup(func()) }) *ISomeService
NewISomeService creates a new instance of ISomeService. 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 (*ISomeService) EXPECT ¶
func (_m *ISomeService) EXPECT() *ISomeService_Expecter
func (*ISomeService) SomeMethod ¶
func (_m *ISomeService) SomeMethod(ctx context.Context) error
SomeMethod provides a mock function with given fields: ctx
type ISomeService_Expecter ¶
type ISomeService_Expecter struct {
// contains filtered or unexported fields
}
func (*ISomeService_Expecter) SomeMethod ¶
func (_e *ISomeService_Expecter) SomeMethod(ctx interface{}) *ISomeService_SomeMethod_Call
SomeMethod is a helper method to define mock.On call
- ctx context.Context
type ISomeService_SomeMethod_Call ¶
ISomeService_SomeMethod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SomeMethod'
func (*ISomeService_SomeMethod_Call) Return ¶
func (_c *ISomeService_SomeMethod_Call) Return(_a0 error) *ISomeService_SomeMethod_Call
func (*ISomeService_SomeMethod_Call) Run ¶
func (_c *ISomeService_SomeMethod_Call) Run(run func(ctx context.Context)) *ISomeService_SomeMethod_Call
func (*ISomeService_SomeMethod_Call) RunAndReturn ¶
func (_c *ISomeService_SomeMethod_Call) RunAndReturn(run func(context.Context) error) *ISomeService_SomeMethod_Call
type IWorker ¶
IWorker is an autogenerated mock type for the IWorker type
func NewIWorker ¶
NewIWorker creates a new instance of IWorker. 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 (*IWorker) EXPECT ¶
func (_m *IWorker) EXPECT() *IWorker_Expecter
type IWorker_Expecter ¶
type IWorker_Expecter struct {
// contains filtered or unexported fields
}
func (*IWorker_Expecter) HandleProcessSomeDataTask ¶
func (_e *IWorker_Expecter) HandleProcessSomeDataTask(ctx interface{}, t interface{}) *IWorker_HandleProcessSomeDataTask_Call
HandleProcessSomeDataTask is a helper method to define mock.On call
- ctx context.Context
- t *asynq.Task
type IWorker_HandleProcessSomeDataTask_Call ¶
IWorker_HandleProcessSomeDataTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleProcessSomeDataTask'
func (*IWorker_HandleProcessSomeDataTask_Call) Return ¶
func (_c *IWorker_HandleProcessSomeDataTask_Call) Return(_a0 error) *IWorker_HandleProcessSomeDataTask_Call
func (*IWorker_HandleProcessSomeDataTask_Call) Run ¶
func (_c *IWorker_HandleProcessSomeDataTask_Call) Run(run func(ctx context.Context, t *asynq.Task)) *IWorker_HandleProcessSomeDataTask_Call
func (*IWorker_HandleProcessSomeDataTask_Call) RunAndReturn ¶
func (_c *IWorker_HandleProcessSomeDataTask_Call) RunAndReturn(run func(context.Context, *asynq.Task) error) *IWorker_HandleProcessSomeDataTask_Call
type Modeler ¶
Modeler is an autogenerated mock type for the Modeler type
func NewModeler ¶
NewModeler creates a new instance of Modeler. 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 (*Modeler) EXPECT ¶
func (_m *Modeler) EXPECT() *Modeler_Expecter
type Modeler_Expecter ¶
type Modeler_Expecter struct {
// contains filtered or unexported fields
}
func (*Modeler_Expecter) GetID ¶
func (_e *Modeler_Expecter) GetID() *Modeler_GetID_Call
GetID is a helper method to define mock.On call
type Modeler_GetID_Call ¶
Modeler_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*Modeler_GetID_Call) Return ¶
func (_c *Modeler_GetID_Call) Return(_a0 uint) *Modeler_GetID_Call
func (*Modeler_GetID_Call) Run ¶
func (_c *Modeler_GetID_Call) Run(run func()) *Modeler_GetID_Call
func (*Modeler_GetID_Call) RunAndReturn ¶
func (_c *Modeler_GetID_Call) RunAndReturn(run func() uint) *Modeler_GetID_Call