Documentation ¶
Index ¶
- type DBUser
- type Repository
- func (r *Repository) UserAdd(u user.User) error
- func (r *Repository) UserDeleteByUUID(userUUID string) error
- func (r *Repository) UserGetAll() ([]user.User, error)
- func (r *Repository) UserGetByEmail(email string) (user.User, error)
- func (r *Repository) UserGetByNickName(nick string) (user.User, error)
- func (r *Repository) UserGetByUUID(userUUID string) (user.User, error)
- func (r *Repository) UserIsEmailRegistered(email string) (bool, error)
- func (r *Repository) UserIsNickNameRegistered(nick string) (bool, error)
- func (r *Repository) UserUpdate(u user.User) error
- func (r *Repository) UserUpdateInfo(info user.InfoUpdate) error
- func (r *Repository) UserUpdatePasswordHash(passwordHash user.PasswordHashUpdate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
*pgbase.Repository
}
func NewRepository ¶
func NewRepository(pool *pgxpool.Pool) *Repository
func (*Repository) UserDeleteByUUID ¶
func (r *Repository) UserDeleteByUUID(userUUID string) error
func (*Repository) UserGetAll ¶
func (r *Repository) UserGetAll() ([]user.User, error)
func (*Repository) UserGetByEmail ¶
func (r *Repository) UserGetByEmail(email string) (user.User, error)
func (*Repository) UserGetByNickName ¶
func (r *Repository) UserGetByNickName(nick string) (user.User, error)
func (*Repository) UserGetByUUID ¶
func (r *Repository) UserGetByUUID(userUUID string) (user.User, error)
func (*Repository) UserIsEmailRegistered ¶
func (r *Repository) UserIsEmailRegistered(email string) (bool, error)
func (*Repository) UserIsNickNameRegistered ¶
func (r *Repository) UserIsNickNameRegistered(nick string) (bool, error)
func (*Repository) UserUpdate ¶
func (r *Repository) UserUpdate(u user.User) error
func (*Repository) UserUpdateInfo ¶
func (r *Repository) UserUpdateInfo(info user.InfoUpdate) error
func (*Repository) UserUpdatePasswordHash ¶
func (r *Repository) UserUpdatePasswordHash(passwordHash user.PasswordHashUpdate) error
Click to show internal directories.
Click to hide internal directories.