Versions in this module Expand all Collapse all v1 v1.0.0 Mar 21, 2026 Changes in this version + type AccountsService struct + func NewAccountsService(accountRepo corerepositories.AccountRepository, ...) *AccountsService + func (s *AccountsService) Create(ctx context.Context, userID string, request types.CreateAccountRequest) (*models.Account, error) + func (s *AccountsService) Delete(ctx context.Context, accountID string) error + func (s *AccountsService) GetByID(ctx context.Context, accountID string) (*models.Account, error) + func (s *AccountsService) GetByUserID(ctx context.Context, userID string) ([]models.Account, error) + func (s *AccountsService) Update(ctx context.Context, accountID string, request types.UpdateAccountRequest) (*models.Account, error) + type ImpersonationService struct + func NewImpersonationService(impersonationRepo repositories.ImpersonationRepository, ...) *ImpersonationService + func (s *ImpersonationService) GetAllImpersonations(ctx context.Context) ([]types.Impersonation, error) + func (s *ImpersonationService) GetImpersonationByID(ctx context.Context, impersonationID string) (*types.Impersonation, error) + func (s *ImpersonationService) StartImpersonation(ctx context.Context, actorUserID string, actorSessionID *string, ...) (*types.StartImpersonationResult, error) + func (s *ImpersonationService) StopImpersonation(ctx context.Context, actorUserID string, ...) error + type StateService struct + func NewStateService(userStateRepo repositories.UserStateRepository, ...) *StateService + func (s *StateService) BanUser(ctx context.Context, userID string, request types.BanUserRequest, ...) (*types.AdminUserState, error) + func (s *StateService) CreateSessionState(ctx context.Context, sessionID string, request types.CreateSessionStateRequest, ...) (*types.AdminSessionState, error) + func (s *StateService) CreateUserState(ctx context.Context, userID string, request types.CreateUserStateRequest, ...) (*types.AdminUserState, error) + func (s *StateService) DeleteSessionState(ctx context.Context, sessionID string) error + func (s *StateService) DeleteUserState(ctx context.Context, userID string) error + func (s *StateService) GetBannedUserStates(ctx context.Context) ([]types.AdminUserState, error) + func (s *StateService) GetRevokedSessionStates(ctx context.Context) ([]types.AdminSessionState, error) + func (s *StateService) GetSessionState(ctx context.Context, sessionID string) (*types.AdminSessionState, error) + func (s *StateService) GetUserAdminSessions(ctx context.Context, userID string) ([]types.AdminUserSession, error) + func (s *StateService) GetUserState(ctx context.Context, userID string) (*types.AdminUserState, error) + func (s *StateService) RevokeSession(ctx context.Context, sessionID string, reason *string, actorUserID *string) (*types.AdminSessionState, error) + func (s *StateService) UnbanUser(ctx context.Context, userID string) (*types.AdminUserState, error) + func (s *StateService) UpdateSessionState(ctx context.Context, sessionID string, request types.UpsertSessionStateRequest, ...) (*types.AdminSessionState, error) + func (s *StateService) UpdateUserState(ctx context.Context, userID string, request types.UpsertUserStateRequest, ...) (*types.AdminUserState, error) + func (s *StateService) UpsertSessionState(ctx context.Context, sessionID string, request types.UpsertSessionStateRequest, ...) (*types.AdminSessionState, error) + func (s *StateService) UpsertUserState(ctx context.Context, userID string, request types.UpsertUserStateRequest, ...) (*types.AdminUserState, error) + type UsersService struct + func NewUsersService(userRepo repositories.UserRepository) *UsersService + func (s *UsersService) Create(ctx context.Context, request types.CreateUserRequest) (*models.User, error) + func (s *UsersService) Delete(ctx context.Context, userID string) error + func (s *UsersService) GetAll(ctx context.Context, cursor *string, limit int) (*types.UsersPage, error) + func (s *UsersService) GetByID(ctx context.Context, userID string) (*models.User, error) + func (s *UsersService) Update(ctx context.Context, userID string, request types.UpdateUserRequest) (*models.User, error)