Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
type UserRepository interface { CreateUser(ctx context.Context, u *entity.UserEntity) error FindUserByEmail(ctx context.Context, email string) (*entity.UserEntity, error) FindUserByID(ctx context.Context, id string) (*entity.UserEntity, error) UpdateUser(ctx context.Context, u *entity.UserEntity) error DeleteUser(ctx context.Context, id string) error FindManyUsers(ctx context.Context) ([]entity.UserEntity, error) UpdatePassword(ctx context.Context, pass, id string) error }
func NewUserRepository ¶
func NewUserRepository(db *sql.DB, q *sqlc.Queries) UserRepository
Click to show internal directories.
Click to hide internal directories.