Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { CategoryRepo repository.CategoryRepo ProductRepo repository.ProductRepo // contains filtered or unexported fields }
func InitializeDatabase ¶
func (*Database) GetCollectionHandler ¶
func (d *Database) GetCollectionHandler(collectonName string) *mongo.Collection
type RepoOpts ¶
type RepoOpts func(d *Database)
func SetCategoryRepo ¶
func SetCategoryRepo(c repository.CategoryRepo) RepoOpts
func SetProductRepo ¶
func SetProductRepo(p repository.ProductRepo) RepoOpts
Click to show internal directories.
Click to hide internal directories.