Documentation ¶
Index ¶
- type IUserRepo
- func (_m *IUserRepo) CreateUser(ctx context.Context, user *entity.User) (int, error)
- func (_m *IUserRepo) GetUserByEmail(ctx context.Context, email string) (*entity.User, error)
- func (_m *IUserRepo) GetUserByID(ctx context.Context, id int) (*entity.User, error)
- func (_m *IUserRepo) GetUsers(ctx context.Context) ([]*entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUserRepo ¶
IUserRepo is an autogenerated mock type for the IUserRepo type
func NewIUserRepo ¶
NewIUserRepo creates a new instance of IUserRepo. 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 (*IUserRepo) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, user
func (*IUserRepo) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: ctx, email
func (*IUserRepo) GetUserByID ¶
GetUserByID provides a mock function with given fields: ctx, id
Click to show internal directories.
Click to hide internal directories.