userrepository

package
v0.0.0-...-71fa18b Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Sqlx *sqlx.DB
}

type UserRepository

type UserRepository struct {
	Model usermodel.IUserModel
}

func New

func New() *UserRepository

New create a new instance

func (*UserRepository) Add

func (*UserRepository) Delete

func (r *UserRepository) Delete(ctx context.Context, id int64) *errors.CustomError

func (*UserRepository) GetAll

func (*UserRepository) GetByEmail

func (u *UserRepository) GetByEmail(ctx context.Context, email string) (*entities.User, *errors.CustomError)

func (*UserRepository) GetByID

Jump to

Keyboard shortcuts

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