Documentation ¶
Index ¶
- type MongoRepository
- func (mongo *MongoRepository) DeleteUser(ctx context.Context, id string) (err error)
- func (m *MongoRepository) FindUserByEmail(ctx context.Context, email string) (user *user.User, err error)
- func (m *MongoRepository) FindUserById(ctx context.Context, id string) (user *user.User, err error)
- func (m *MongoRepository) InsertUser(ctx context.Context, user user.User) (err error)
- func (m *MongoRepository) UpdateUser(ctx context.Context, user user.User) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoRepository ¶
type MongoRepository struct {
// contains filtered or unexported fields
}
func NewMongoDBRepository ¶
func NewMongoDBRepository() (*MongoRepository, error)
func (*MongoRepository) DeleteUser ¶
func (mongo *MongoRepository) DeleteUser(ctx context.Context, id string) (err error)
func (*MongoRepository) FindUserByEmail ¶
func (*MongoRepository) FindUserById ¶
func (*MongoRepository) InsertUser ¶
func (*MongoRepository) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.