Documentation ¶
Index ¶
- func ProvideService(db db.DB, orgService org.Service, cfg *setting.Cfg, teamService team.Service, ...) user.Service
- func ProvideStore(db db.DB, cfg *setting.Cfg) sqlStore
- type Service
- func (s *Service) BatchDisableUsers(ctx context.Context, cmd *user.BatchDisableUsersCommand) error
- func (s *Service) ChangePassword(ctx context.Context, cmd *user.ChangeUserPasswordCommand) error
- func (s *Service) Create(ctx context.Context, cmd *user.CreateUserCommand) (*user.User, error)
- func (s *Service) Delete(ctx context.Context, cmd *user.DeleteUserCommand) error
- func (s *Service) Disable(ctx context.Context, cmd *user.DisableUserCommand) error
- func (s *Service) GetByEmail(ctx context.Context, query *user.GetUserByEmailQuery) (*user.User, error)
- func (s *Service) GetByID(ctx context.Context, query *user.GetUserByIDQuery) (*user.User, error)
- func (s *Service) GetByLogin(ctx context.Context, query *user.GetUserByLoginQuery) (*user.User, error)
- func (s *Service) GetProfile(ctx context.Context, query *user.GetUserProfileQuery) (*user.UserProfileDTO, error)
- func (s *Service) GetSignedInUser(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)
- func (s *Service) GetSignedInUserWithCacheCtx(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)
- func (s *Service) Search(ctx context.Context, query *user.SearchUsersQuery) (*user.SearchUserQueryResult, error)
- func (s *Service) SetUserHelpFlag(ctx context.Context, cmd *user.SetUserHelpFlagCommand) error
- func (s *Service) SetUsingOrg(ctx context.Context, cmd *user.SetUsingOrgCommand) error
- func (s *Service) Update(ctx context.Context, cmd *user.UpdateUserCommand) error
- func (s *Service) UpdateLastSeenAt(ctx context.Context, cmd *user.UpdateUserLastSeenAtCommand) error
- func (s *Service) UpdatePermissions(ctx context.Context, userID int64, isAdmin bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProvideService ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) BatchDisableUsers ¶
func (*Service) ChangePassword ¶
func (*Service) GetByEmail ¶
func (*Service) GetByLogin ¶
func (*Service) GetProfile ¶
func (s *Service) GetProfile(ctx context.Context, query *user.GetUserProfileQuery) (*user.UserProfileDTO, error)
func (*Service) GetSignedInUser ¶
func (s *Service) GetSignedInUser(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)
func (*Service) GetSignedInUserWithCacheCtx ¶
func (s *Service) GetSignedInUserWithCacheCtx(ctx context.Context, query *user.GetSignedInUserQuery) (*user.SignedInUser, error)
func (*Service) Search ¶
func (s *Service) Search(ctx context.Context, query *user.SearchUsersQuery) (*user.SearchUserQueryResult, error)
func (*Service) SetUserHelpFlag ¶
func (*Service) SetUsingOrg ¶
func (*Service) UpdateLastSeenAt ¶
Click to show internal directories.
Click to hide internal directories.