Documentation ¶
Index ¶
- type UsersRepositoryPostgres
- func (usersRepository *UsersRepositoryPostgres) Create(data *dtos.UserDTO) (*entities.UserEntity, *shared.Error)
- func (usersRepository *UsersRepositoryPostgres) FindByEmail(email string) (*entities.UserEntity, *shared.Error)
- func (usersRepository *UsersRepositoryPostgres) FindByUsername(username string, caseSensitive bool) (*entities.UserEntity, *shared.Error)
- func (usersRepository *UsersRepositoryPostgres) Save(user *entities.UserEntity) *shared.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UsersRepositoryPostgres ¶
type UsersRepositoryPostgres struct {
// contains filtered or unexported fields
}
func NewUsersRepositoryPostgres ¶
func NewUsersRepositoryPostgres(db *sql.DB) (*UsersRepositoryPostgres, *shared.Error)
func (*UsersRepositoryPostgres) Create ¶
func (usersRepository *UsersRepositoryPostgres) Create( data *dtos.UserDTO, ) (*entities.UserEntity, *shared.Error)
func (*UsersRepositoryPostgres) FindByEmail ¶
func (usersRepository *UsersRepositoryPostgres) FindByEmail(email string) (*entities.UserEntity, *shared.Error)
func (*UsersRepositoryPostgres) FindByUsername ¶
func (usersRepository *UsersRepositoryPostgres) FindByUsername( username string, caseSensitive bool, ) (*entities.UserEntity, *shared.Error)
func (*UsersRepositoryPostgres) Save ¶
func (usersRepository *UsersRepositoryPostgres) Save(user *entities.UserEntity) *shared.Error
Click to show internal directories.
Click to hide internal directories.