Documentation ¶
Index ¶
- type UserRepository
- func (r *UserRepository) GetUserByEmail(ctx context.Context, email string) (*models.User, error)
- func (r *UserRepository) GetUserByID(ctx context.Context, ID string) (*models.User, error)
- func (r *UserRepository) GetUserByUsername(ctx context.Context, username string) (*models.User, error)
- func (r *UserRepository) RegisterUser(ctx context.Context, user *models.User) (*models.User, error)
- func (r *UserRepository) UpdateProfile(ctx context.Context, subjectEmail, clientUsername string, user *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
func NewUserRepository ¶
func NewUserRepository(client *mongo.Client) *UserRepository
func (*UserRepository) GetUserByEmail ¶
func (*UserRepository) GetUserByID ¶
func (*UserRepository) GetUserByUsername ¶
func (*UserRepository) RegisterUser ¶
func (*UserRepository) UpdateProfile ¶
Click to show internal directories.
Click to hide internal directories.