repositories

package
v0.0.0-...-e03766a Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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