database

package
v0.0.0-...-3d01394 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProductsCollection represents the name of the product collection in the database
	ProductsCollection string = "products"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductDataStoreMongoDB

type ProductDataStoreMongoDB struct {
	DBDriver dbdriver.NoSQLDBDriver
}

ProductDataStoreMongoDB is responsible for implementing the ProductDataStore interface, using a document database

func (*ProductDataStoreMongoDB) FindByID

func (pds *ProductDataStoreMongoDB) FindByID(ID string) (*model.Product, error)

FindByID is responsible for obtaining a product according to the given identifier

Jump to

Keyboard shortcuts

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