Documentation ¶
Index ¶
- func NewUserRepositoryMongo(collection *mongo.Collection) entity.IUserRepository
- type UserRepositoryMongo
- func (r *UserRepositoryMongo) CreateUser(ctx context.Context, user *entity.User) (*entity.User, error)
- func (r *UserRepositoryMongo) GetUser(ctx context.Context, id string) (*entity.User, error)
- func (r *UserRepositoryMongo) GetUserByEmail(ctx context.Context, email string) (*entity.User, error)
- func (r *UserRepositoryMongo) UpdateUser(ctx context.Context, user *entity.User) (*entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserRepositoryMongo ¶
func NewUserRepositoryMongo(collection *mongo.Collection) entity.IUserRepository
Types ¶
type UserRepositoryMongo ¶
type UserRepositoryMongo struct {
// contains filtered or unexported fields
}
func (*UserRepositoryMongo) CreateUser ¶
func (*UserRepositoryMongo) GetUserByEmail ¶
func (*UserRepositoryMongo) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.