Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // User errors ErrDuplicateUser = fmt.Errorf("duplicate user") )
Functions ¶
This section is empty.
Types ¶
type BannedTokenRepository ¶
type UserRepository ¶
type UserRepository interface {
CreateUser(ctx context.Context, user *model.UserEntity) (*model.UserEntity, error)
UpdateUser(ctx context.Context, user *model.UserEntity) (*model.UserEntity, error)
FindUserById(ctx context.Context, id uuid.UUID, rolePreload bool) (*model.UserEntity, error)
FindUserByUsername(ctx context.Context, username string, rolePreload bool) (*model.UserEntity, error)
FindUserByEmail(ctx context.Context, email string, rolePreload bool) (*model.UserEntity, error)
FindUserByUsernameOrEmail(ctx context.Context, login string, rolePreload bool) (*model.UserEntity, error)
ExistsUserById(ctx context.Context, id uuid.UUID) (bool, error)
ExistsUserByUsername(ctx context.Context, username string) (bool, error)
ExistsUserByEmail(ctx context.Context, email string) (bool, error)
ExistsUserByUsernameOrEmail(ctx context.Context, username string, email string) (bool, error)
DeleteExpiredUser(ctx context.Context) (*model.UserEntity, error)
}
Click to show internal directories.
Click to hide internal directories.