Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProductService ¶
func NewProductService(repository repository) *productService
Types ¶
type Product ¶
type Product struct { ASIN string `json:"asin"` Name string `json:"name"` Brand string `json:"brand"` Price string `json:"price"` PreviousPrice string `json:"previous_price"` ChangeDate string `json:"change_date"` }
func (*Product) FormatProduct ¶
type ProductRepository ¶
type ProductRepository struct {
// contains filtered or unexported fields
}
func NewProductRepository ¶
func NewProductRepository(db *mongo.Client) *ProductRepository
Click to show internal directories.
Click to hide internal directories.