Documentation ¶
Index ¶
- type AccountsPostgresRepository
- func (repository *AccountsPostgresRepository) GetAdmins() ([]*entities.User, error)
- func (repository *AccountsPostgresRepository) GetUserByEmail(email string) (*entities.User, error)
- func (repository *AccountsPostgresRepository) GetUserByInstitutionalId(id string) (*entities.User, error)
- func (repository *AccountsPostgresRepository) GetUserByUUID(uuid string) (*entities.User, error)
- func (repository *AccountsPostgresRepository) SaveAdmin(dto dtos.RegisterUserDTO) error
- func (repository *AccountsPostgresRepository) SaveStudent(dto dtos.RegisterUserDTO) error
- func (repository *AccountsPostgresRepository) SaveTeacher(dto dtos.RegisterUserDTO) error
- func (repository *AccountsPostgresRepository) SearchStudentsByFullName(fullName string) ([]*entities.User, error)
- func (repository *AccountsPostgresRepository) UpdatePassword(uuid string, newPassword string) error
- func (repository *AccountsPostgresRepository) UpdateProfile(dto dtos.UpdateAccountDTO) error
- type Argon2PasswordsHasher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsPostgresRepository ¶
func GetAccountsPgRepository ¶
func GetAccountsPgRepository() *AccountsPostgresRepository
func (*AccountsPostgresRepository) GetAdmins ¶
func (repository *AccountsPostgresRepository) GetAdmins() ([]*entities.User, error)
func (*AccountsPostgresRepository) GetUserByEmail ¶
func (repository *AccountsPostgresRepository) GetUserByEmail(email string) (*entities.User, error)
func (*AccountsPostgresRepository) GetUserByInstitutionalId ¶
func (repository *AccountsPostgresRepository) GetUserByInstitutionalId(id string) (*entities.User, error)
func (*AccountsPostgresRepository) GetUserByUUID ¶
func (repository *AccountsPostgresRepository) GetUserByUUID(uuid string) (*entities.User, error)
func (*AccountsPostgresRepository) SaveAdmin ¶
func (repository *AccountsPostgresRepository) SaveAdmin(dto dtos.RegisterUserDTO) error
func (*AccountsPostgresRepository) SaveStudent ¶
func (repository *AccountsPostgresRepository) SaveStudent(dto dtos.RegisterUserDTO) error
func (*AccountsPostgresRepository) SaveTeacher ¶
func (repository *AccountsPostgresRepository) SaveTeacher(dto dtos.RegisterUserDTO) error
func (*AccountsPostgresRepository) SearchStudentsByFullName ¶ added in v0.15.0
func (repository *AccountsPostgresRepository) SearchStudentsByFullName(fullName string) ([]*entities.User, error)
func (*AccountsPostgresRepository) UpdatePassword ¶ added in v0.46.0
func (repository *AccountsPostgresRepository) UpdatePassword(uuid string, newPassword string) error
func (*AccountsPostgresRepository) UpdateProfile ¶ added in v0.48.0
func (repository *AccountsPostgresRepository) UpdateProfile(dto dtos.UpdateAccountDTO) error
UpdateProfile updates the profile of a user in the database
type Argon2PasswordsHasher ¶
func GetArgon2PasswordsHasher ¶
func GetArgon2PasswordsHasher() *Argon2PasswordsHasher
func (*Argon2PasswordsHasher) ComparePasswords ¶
func (hasher *Argon2PasswordsHasher) ComparePasswords(password string, hashedPassword string) (bool, error)
func (*Argon2PasswordsHasher) HashPassword ¶
func (hasher *Argon2PasswordsHasher) HashPassword(password string) (string, error)
Click to show internal directories.
Click to hide internal directories.