Documentation
¶
Index ¶
- type UserRepository
- func (_m *UserRepository) Create(ctx context.Context, _a1 *user.User) error
- func (_m *UserRepository) Delete(ctx context.Context, userId int) (int64, error)
- func (_m *UserRepository) GetAll(ctx context.Context) ([]user.User, error)
- func (_m *UserRepository) GetSegments(ctx context.Context, userId int) ([]segment.Segment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
UserRepository is an autogenerated mock type for the userRepository type
func NewUserRepository ¶
func NewUserRepository(t interface { mock.TestingT Cleanup(func()) }) *UserRepository
NewUserRepository creates a new instance of UserRepository. 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 (*UserRepository) GetSegments ¶
GetSegments provides a mock function with given fields: ctx, userId
Click to show internal directories.
Click to hide internal directories.