Documentation
¶
Index ¶
Constants ¶
View Source
const ( InstancePostgres int = iota InstanceMongo )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Db ¶
func ConnectMongoDB ¶
ConnectMongoDB connects the mongodb and returns Db type and assigns the mongodb client to the Db client field
func ConnectPostgres ¶
ConnectPostgres connects to the postgres database pool and assigns it the Db struct pool field returning Db
func NewDatabaseFactory ¶
NewDatabaseFactory returns Db type based of the db instance provided
Click to show internal directories.
Click to hide internal directories.