repositories

package
v0.0.0-...-9c79e73 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository struct {
	DBClient *mongo.Client
}

func NewUserRepository

func NewUserRepository(client *mongo.Client) *UserRepository

func (*UserRepository) GetUserByEmail

func (r *UserRepository) GetUserByEmail(ctx context.Context, email string) (*models.User, error)

func (*UserRepository) GetUserByID

func (r *UserRepository) GetUserByID(ctx context.Context, ID string) (*models.User, error)

func (*UserRepository) GetUserByUsername

func (r *UserRepository) GetUserByUsername(ctx context.Context, username string) (*models.User, error)

func (*UserRepository) RegisterUser

func (r *UserRepository) RegisterUser(ctx context.Context, user *models.User) (*models.User, error)

func (*UserRepository) UpdateProfile

func (r *UserRepository) UpdateProfile(ctx context.Context, subjectEmail, clientUsername string, user *models.User) error

Jump to

Keyboard shortcuts

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