implementations

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsPostgresRepository

type AccountsPostgresRepository struct {
	Connection *sql.DB
}

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)

type Argon2PasswordsHasher

type Argon2PasswordsHasher struct {
	Params *argon2id.Params
}

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)

Jump to

Keyboard shortcuts

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