repo

package
v0.0.0-...-a8cf2a2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepo

type UserRepo struct {
	*postgres.Postgres
}

func NewUserRepo

func NewUserRepo(pg *postgres.Postgres) *UserRepo

func (*UserRepo) CreateUser

func (ur *UserRepo) CreateUser(ctx context.Context, user *entity.User) (int, error)

func (*UserRepo) GetUserByEmail

func (ur *UserRepo) GetUserByEmail(ctx context.Context, email string) (user *entity.User, err error)

func (*UserRepo) GetUserByID

func (ur *UserRepo) GetUserByID(ctx context.Context, id string) (user *entity.User, err error)

func (*UserRepo) GetUsers

func (ur *UserRepo) GetUsers(ctx context.Context) (users []*entity.User, err error)

Jump to

Keyboard shortcuts

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