Documentation ¶
Index ¶
- type FakeUserService
- func (f *FakeUserService) BatchDisableUsers(ctx context.Context, cmd *user.BatchDisableUsersCommand) error
- func (f *FakeUserService) ChangePassword(ctx context.Context, cmd *user.ChangeUserPasswordCommand) error
- func (f *FakeUserService) Create(ctx context.Context, cmd *user.CreateUserCommand) (*user.User, error)
- func (f *FakeUserService) Delete(ctx context.Context, cmd *user.DeleteUserCommand) error
- func (f *FakeUserService) Disable(ctx context.Context, cmd *user.DisableUserCommand) error
- func (f *FakeUserService) GetByEmail(ctx context.Context, query *user.GetUserByEmailQuery) (*user.User, error)
- func (f *FakeUserService) GetByID(ctx context.Context, query *user.GetUserByIDQuery) (*user.User, error)
- func (f *FakeUserService) GetByLogin(ctx context.Context, query *user.GetUserByLoginQuery) (*user.User, error)
- func (f *FakeUserService) GetProfile(ctx context.Context, query *user.GetUserProfileQuery) (*user.UserProfileDTO, error)
- func (f *FakeUserService) GetSignedInUser(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)
- func (f *FakeUserService) GetSignedInUserWithCacheCtx(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)
- func (f *FakeUserService) Search(ctx context.Context, query *user.SearchUsersQuery) (*user.SearchUserQueryResult, error)
- func (f *FakeUserService) SetUserHelpFlag(ctx context.Context, cmd *user.SetUserHelpFlagCommand) error
- func (f *FakeUserService) SetUsingOrg(ctx context.Context, cmd *user.SetUsingOrgCommand) error
- func (f *FakeUserService) Update(ctx context.Context, cmd *user.UpdateUserCommand) error
- func (f *FakeUserService) UpdateLastSeenAt(ctx context.Context, cmd *user.UpdateUserLastSeenAtCommand) error
- func (f *FakeUserService) UpdatePermissions(ctx context.Context, userID int64, isAdmin bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeUserService ¶
type FakeUserService struct { ExpectedUser *user.User ExpectedSignedInUser *user.SignedInUser ExpectedError error ExpectedSetUsingOrgError error ExpectedSearchUsers user.SearchUserQueryResult ExpectedUserProfileDTO *user.UserProfileDTO GetSignedInUserFn func(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error) }
func NewUserServiceFake ¶
func NewUserServiceFake() *FakeUserService
func (*FakeUserService) BatchDisableUsers ¶
func (f *FakeUserService) BatchDisableUsers(ctx context.Context, cmd *user.BatchDisableUsersCommand) error
func (*FakeUserService) ChangePassword ¶
func (f *FakeUserService) ChangePassword(ctx context.Context, cmd *user.ChangeUserPasswordCommand) error
func (*FakeUserService) Create ¶
func (f *FakeUserService) Create(ctx context.Context, cmd *user.CreateUserCommand) (*user.User, error)
func (*FakeUserService) Delete ¶
func (f *FakeUserService) Delete(ctx context.Context, cmd *user.DeleteUserCommand) error
func (*FakeUserService) Disable ¶
func (f *FakeUserService) Disable(ctx context.Context, cmd *user.DisableUserCommand) error
func (*FakeUserService) GetByEmail ¶
func (f *FakeUserService) GetByEmail(ctx context.Context, query *user.GetUserByEmailQuery) (*user.User, error)
func (*FakeUserService) GetByID ¶
func (f *FakeUserService) GetByID(ctx context.Context, query *user.GetUserByIDQuery) (*user.User, error)
func (*FakeUserService) GetByLogin ¶
func (f *FakeUserService) GetByLogin(ctx context.Context, query *user.GetUserByLoginQuery) (*user.User, error)
func (*FakeUserService) GetProfile ¶
func (f *FakeUserService) GetProfile(ctx context.Context, query *user.GetUserProfileQuery) (*user.UserProfileDTO, error)
func (*FakeUserService) GetSignedInUser ¶
func (f *FakeUserService) GetSignedInUser(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)
func (*FakeUserService) GetSignedInUserWithCacheCtx ¶
func (f *FakeUserService) GetSignedInUserWithCacheCtx(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)
func (*FakeUserService) Search ¶
func (f *FakeUserService) Search(ctx context.Context, query *user.SearchUsersQuery) (*user.SearchUserQueryResult, error)
func (*FakeUserService) SetUserHelpFlag ¶
func (f *FakeUserService) SetUserHelpFlag(ctx context.Context, cmd *user.SetUserHelpFlagCommand) error
func (*FakeUserService) SetUsingOrg ¶
func (f *FakeUserService) SetUsingOrg(ctx context.Context, cmd *user.SetUsingOrgCommand) error
func (*FakeUserService) Update ¶
func (f *FakeUserService) Update(ctx context.Context, cmd *user.UpdateUserCommand) error
func (*FakeUserService) UpdateLastSeenAt ¶
func (f *FakeUserService) UpdateLastSeenAt(ctx context.Context, cmd *user.UpdateUserLastSeenAtCommand) error
func (*FakeUserService) UpdatePermissions ¶
Click to show internal directories.
Click to hide internal directories.