Documentation ¶
Index ¶
- type MongoRepository
- func (dbs *MongoRepository) CloseConnection() error
- func (dbs *MongoRepository) ConnectDB(username string, password string, url string, port int) *mongo.Client
- func (dbs *MongoRepository) GetDb() (*mongo.Client, error)
- func (dbs *MongoRepository) Init(username string, password string, url string, port int) *MongoRepository
- func (dbs *MongoRepository) ListDatabases() []string
- func (dbs *MongoRepository) PingDb() error
- type UserRepository
- type UserRepositoryImpl
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 (*MongoRepository) CloseConnection ¶
func (dbs *MongoRepository) CloseConnection() error
func (*MongoRepository) Init ¶
func (dbs *MongoRepository) Init(username string, password string, url string, port int) *MongoRepository
func (*MongoRepository) ListDatabases ¶
func (dbs *MongoRepository) ListDatabases() []string
func (*MongoRepository) PingDb ¶
func (dbs *MongoRepository) PingDb() error
type UserRepository ¶
type UserRepositoryImpl ¶
type UserRepositoryImpl struct {
MongoRepository *MongoRepository
}
func (UserRepositoryImpl) GetUserByEmail ¶
func (u UserRepositoryImpl) GetUserByEmail(email string) (models.User, error)
Click to show internal directories.
Click to hide internal directories.