Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProductDataMap ¶
func CreateProductDataMap(url string) (map[string]ProductMetadata, error)
CreateProductDataMap builds a map[string] based of array of gtin for search efficiency
Types ¶
type ProdData ¶
type ProdData struct { Sku string `json:"sku"` ProductList []ProductMetadata `json:"productList"` }
ProdData represents the product data schema in the database
func MakeGetCallToSkuMapping ¶
type ProductMetadata ¶
type ProductMetadata struct { ProductID string `json:"productId"` BeingRead float64 `json:"beingRead"` BecomingReadable float64 `json:"becomingReadable"` ExitError float64 `json:"exitError"` DailyTurn float64 `json:"dailyTurn"` Metadata map[string]interface{} `json:"metadata"` }
ProductMetadata represents the ProductList schema attribute in the database
Click to show internal directories.
Click to hide internal directories.