Documentation ¶
Index ¶
- type UserRepository
- func (_m *UserRepository) BannedUser(ctx context.Context, userID string) error
- func (_m *UserRepository) FindAllWithStatusAndPagination(ctx context.Context, accessorUserID string, orderBy entity.UserOrderBy, ...) (entity.Pagination[entity.User], error)
- func (_m *UserRepository) FindByUsername(ctx context.Context, username string) (entity.User, error)
- func (_m *UserRepository) FindByUsernameWithAccessor(ctx context.Context, accessorUserID string, username string) (entity.User, error)
- func (_m *UserRepository) FollowUser(ctx context.Context, ID string, accessorUserID string, userID string) error
- func (_m *UserRepository) Insert(ctx context.Context, _a1 entity.User) error
- func (_m *UserRepository) UnbannedUser(ctx context.Context, userID string) error
- func (_m *UserRepository) UnfollowUser(ctx context.Context, accessorUserID string, userID string) 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 mockConstructorTestingTNewUserRepository) *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.
func (*UserRepository) BannedUser ¶
func (_m *UserRepository) BannedUser(ctx context.Context, userID string) error
BannedUser provides a mock function with given fields: ctx, userID
func (*UserRepository) FindAllWithStatusAndPagination ¶
func (_m *UserRepository) FindAllWithStatusAndPagination(ctx context.Context, accessorUserID string, orderBy entity.UserOrderBy, userStatus entity.UserStatus, pageInfo entity.PageInfo, keyword string) (entity.Pagination[entity.User], error)
FindAllWithStatusAndPagination provides a mock function with given fields: ctx, accessorUserID, orderBy, userStatus, pageInfo, keyword
func (*UserRepository) FindByUsername ¶
FindByUsername provides a mock function with given fields: ctx, username
func (*UserRepository) FindByUsernameWithAccessor ¶
func (_m *UserRepository) FindByUsernameWithAccessor(ctx context.Context, accessorUserID string, username string) (entity.User, error)
FindByUsernameWithAccessor provides a mock function with given fields: ctx, accessorUserID, username
func (*UserRepository) FollowUser ¶
func (_m *UserRepository) FollowUser(ctx context.Context, ID string, accessorUserID string, userID string) error
FollowUser provides a mock function with given fields: ctx, ID, accessorUserID, userID
func (*UserRepository) UnbannedUser ¶
func (_m *UserRepository) UnbannedUser(ctx context.Context, userID string) error
UnbannedUser provides a mock function with given fields: ctx, userID
func (*UserRepository) UnfollowUser ¶
func (_m *UserRepository) UnfollowUser(ctx context.Context, accessorUserID string, userID string) error
UnfollowUser provides a mock function with given fields: ctx, accessorUserID, userID