userimpl

package
v0.0.1-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideService

func ProvideService(
	db db.DB,
	orgService org.Service,
	cfg *setting.Cfg,
	teamService team.Service,
	cacheService *localcache.CacheService,
) user.Service

func ProvideStore

func ProvideStore(db db.DB, cfg *setting.Cfg) sqlStore

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) BatchDisableUsers

func (s *Service) BatchDisableUsers(ctx context.Context, cmd *user.BatchDisableUsersCommand) error

func (*Service) ChangePassword

func (s *Service) ChangePassword(ctx context.Context, cmd *user.ChangeUserPasswordCommand) error

func (*Service) Create

func (s *Service) Create(ctx context.Context, cmd *user.CreateUserCommand) (*user.User, error)

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, cmd *user.DeleteUserCommand) error

func (*Service) Disable

func (s *Service) Disable(ctx context.Context, cmd *user.DisableUserCommand) error

func (*Service) GetByEmail

func (s *Service) GetByEmail(ctx context.Context, query *user.GetUserByEmailQuery) (*user.User, error)

func (*Service) GetByID

func (s *Service) GetByID(ctx context.Context, query *user.GetUserByIDQuery) (*user.User, error)

func (*Service) GetByLogin

func (s *Service) GetByLogin(ctx context.Context, query *user.GetUserByLoginQuery) (*user.User, error)

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 (*Service) SetUserHelpFlag

func (s *Service) SetUserHelpFlag(ctx context.Context, cmd *user.SetUserHelpFlagCommand) error

func (*Service) SetUsingOrg

func (s *Service) SetUsingOrg(ctx context.Context, cmd *user.SetUsingOrgCommand) error

func (*Service) Update

func (s *Service) Update(ctx context.Context, cmd *user.UpdateUserCommand) error

func (*Service) UpdateLastSeenAt

func (s *Service) UpdateLastSeenAt(ctx context.Context, cmd *user.UpdateUserLastSeenAtCommand) error

func (*Service) UpdatePermissions

func (s *Service) UpdatePermissions(ctx context.Context, userID int64, isAdmin bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL