Documentation ¶
Index ¶
- type UserService
- func (_m *UserService) ChangeBannedState(ctx context.Context, accessorRole string, username string) error
- func (_m *UserService) ChangeFollowingState(ctx context.Context, accessorUserID string, usernameToFollow string) error
- func (_m *UserService) GetAll(ctx context.Context, accessorUserID string, orderBy string, status string, ...) (response.Pagination[response.User], error)
- func (_m *UserService) GetAllThreadByUsername(ctx context.Context, accessorUserID string, username string, page uint, ...) (response.Pagination[response.ManyThread], error)
- func (_m *UserService) GetByUsername(ctx context.Context, accessorUserID string, username string) (response.User, error)
- func (_m *UserService) GetOwn(ctx context.Context, accessorUserID string, accessorUsername string) (response.User, error)
- func (_m *UserService) Login(ctx context.Context, p payload.Login) (response.Login, error)
- func (_m *UserService) Register(ctx context.Context, p payload.Register) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func NewUserService ¶
func NewUserService(t mockConstructorTestingTNewUserService) *UserService
NewUserService creates a new instance of UserService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserService) ChangeBannedState ¶
func (_m *UserService) ChangeBannedState(ctx context.Context, accessorRole string, username string) error
ChangeBannedState provides a mock function with given fields: ctx, accessorRole, username
func (*UserService) ChangeFollowingState ¶
func (_m *UserService) ChangeFollowingState(ctx context.Context, accessorUserID string, usernameToFollow string) error
ChangeFollowingState provides a mock function with given fields: ctx, accessorUserID, usernameToFollow
func (*UserService) GetAll ¶
func (_m *UserService) GetAll(ctx context.Context, accessorUserID string, orderBy string, status string, page uint, limit uint, keyword string) (response.Pagination[response.User], error)
GetAll provides a mock function with given fields: ctx, accessorUserID, orderBy, status, page, limit, keyword
func (*UserService) GetAllThreadByUsername ¶
func (_m *UserService) GetAllThreadByUsername(ctx context.Context, accessorUserID string, username string, page uint, limit uint) (response.Pagination[response.ManyThread], error)
GetAllThreadByUsername provides a mock function with given fields: ctx, accessorUserID, username, page, limit
func (*UserService) GetByUsername ¶
func (_m *UserService) GetByUsername(ctx context.Context, accessorUserID string, username string) (response.User, error)
GetByUsername provides a mock function with given fields: ctx, accessorUserID, username
func (*UserService) GetOwn ¶
func (_m *UserService) GetOwn(ctx context.Context, accessorUserID string, accessorUsername string) (response.User, error)
GetOwn provides a mock function with given fields: ctx, accessorUserID, accessorUsername