Versions in this module Expand all Collapse all v0 v0.6.0 Jun 30, 2023 Changes in this version + type UserRepository struct + func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository + func (_m *UserRepository) Create(ctx context.Context, ns *namespace.Namespace, u *user.User) (string, error) + func (_m *UserRepository) EXPECT() *UserRepository_Expecter + func (_m *UserRepository) GetByEmail(ctx context.Context, email string) (user.User, error) + func (_m *UserRepository) GetByUUID(ctx context.Context, uuid string) (user.User, error) + func (_m *UserRepository) UpsertByEmail(ctx context.Context, ns *namespace.Namespace, u *user.User) (string, error) + type UserRepository_Create_Call struct + func (_c *UserRepository_Create_Call) Return(_a0 string, _a1 error) *UserRepository_Create_Call + func (_c *UserRepository_Create_Call) Run(run func(ctx context.Context, ns *namespace.Namespace, u *user.User)) *UserRepository_Create_Call + func (_c *UserRepository_Create_Call) RunAndReturn(run func(context.Context, *namespace.Namespace, *user.User) (string, error)) *UserRepository_Create_Call + type UserRepository_Expecter struct + func (_e *UserRepository_Expecter) Create(ctx interface{}, ns interface{}, u interface{}) *UserRepository_Create_Call + func (_e *UserRepository_Expecter) GetByEmail(ctx interface{}, email interface{}) *UserRepository_GetByEmail_Call + func (_e *UserRepository_Expecter) GetByUUID(ctx interface{}, uuid interface{}) *UserRepository_GetByUUID_Call + func (_e *UserRepository_Expecter) UpsertByEmail(ctx interface{}, ns interface{}, u interface{}) *UserRepository_UpsertByEmail_Call + type UserRepository_GetByEmail_Call struct + func (_c *UserRepository_GetByEmail_Call) Return(_a0 user.User, _a1 error) *UserRepository_GetByEmail_Call + func (_c *UserRepository_GetByEmail_Call) Run(run func(ctx context.Context, email string)) *UserRepository_GetByEmail_Call + func (_c *UserRepository_GetByEmail_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserRepository_GetByEmail_Call + type UserRepository_GetByUUID_Call struct + func (_c *UserRepository_GetByUUID_Call) Return(_a0 user.User, _a1 error) *UserRepository_GetByUUID_Call + func (_c *UserRepository_GetByUUID_Call) Run(run func(ctx context.Context, uuid string)) *UserRepository_GetByUUID_Call + func (_c *UserRepository_GetByUUID_Call) RunAndReturn(run func(context.Context, string) (user.User, error)) *UserRepository_GetByUUID_Call + type UserRepository_UpsertByEmail_Call struct + func (_c *UserRepository_UpsertByEmail_Call) Return(_a0 string, _a1 error) *UserRepository_UpsertByEmail_Call + func (_c *UserRepository_UpsertByEmail_Call) Run(run func(ctx context.Context, ns *namespace.Namespace, u *user.User)) *UserRepository_UpsertByEmail_Call + func (_c *UserRepository_UpsertByEmail_Call) RunAndReturn(run func(context.Context, *namespace.Namespace, *user.User) (string, error)) *UserRepository_UpsertByEmail_Call