product

package
v0.0.0-...-109176b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 6 Imported by: 0

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

func (p *Product) FormatProduct(asin, inputJSON string)

type ProductRepository

type ProductRepository struct {
	// contains filtered or unexported fields
}

func NewProductRepository

func NewProductRepository(db *mongo.Client) *ProductRepository

Jump to

Keyboard shortcuts

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