Documentation ¶
Index ¶
- type PostgresRepository
- func (s *PostgresRepository) CheckUserExistance(userEmail, userUserName string) (bool, error)
- func (s *PostgresRepository) GetLoginCridentials(userEmail string) (*models.LoginCridentials, bool, error)
- func (s *PostgresRepository) InsertUser(user *pb.SignUpRequest) error
- func (s *PostgresRepository) UpdateUserPassword(password, username string) error
- func (s *PostgresRepository) VerifyUser(username string) error
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresRepository ¶
func (*PostgresRepository) CheckUserExistance ¶
func (s *PostgresRepository) CheckUserExistance(userEmail, userUserName string) (bool, error)
func (*PostgresRepository) GetLoginCridentials ¶
func (s *PostgresRepository) GetLoginCridentials(userEmail string) (*models.LoginCridentials, bool, error)
func (*PostgresRepository) InsertUser ¶
func (s *PostgresRepository) InsertUser(user *pb.SignUpRequest) error
func (*PostgresRepository) UpdateUserPassword ¶
func (s *PostgresRepository) UpdateUserPassword(password, username string) error
func (*PostgresRepository) VerifyUser ¶
func (s *PostgresRepository) VerifyUser(username string) error
type Repository ¶
type Repository interface { InsertUser(user *pb.SignUpRequest) error CheckUserExistance(userEmail, userUserName string) (bool, error) GetLoginCridentials(userEmail string) (*models.LoginCridentials, bool, error) UpdateUserPassword(password, username string) error VerifyUser(username string) error }
func NewPostgresRepository ¶
func NewPostgresRepository(db *sql.DB) Repository
Click to show internal directories.
Click to hide internal directories.