mongodb

package
v0.0.0-...-4805206 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (m *MongoRepository) FindUserByEmail(ctx context.Context, email string) (user *user.User, err error)

func (*MongoRepository) FindUserById

func (m *MongoRepository) FindUserById(ctx context.Context, id string) (user *user.User, err error)

func (*MongoRepository) InsertUser

func (m *MongoRepository) InsertUser(ctx context.Context, user user.User) (err error)

func (*MongoRepository) UpdateUser

func (m *MongoRepository) UpdateUser(ctx context.Context, user user.User) (err error)

Jump to

Keyboard shortcuts

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