Documentation ¶
Index ¶
- Variables
- func DeleteVendorProduct(vpid string, vendorName string) chan error
- func GetCurrentTime(offset int64) int64
- func GetInstanceConfig(id int64) chan string
- func GetLastVendorOffer(vendorProductId string) chan *VendorOffer
- func GetProduct(UPC string) chan *Product
- func GetVendorOfferCount(vendorProductId string) chan int64
- func GetVendorProduct(vendorProductId string) chan *VendorProduct
- func GetVendorProductList(afterDate int64) chan map[string]VendorProduct
- func PutProduct(prod Product) chan bool
- func PutVendorOffer(vendorOffer VendorOffer) chan bool
- func PutVendorProduct(vendorProd VendorProduct) chan bool
- func SetDynamoConfig(accessKey, secretKey, regionText string)
- func SetTestTableSuffix(suffix string)
- type AvailabilityEnum
- type Product
- type ProductTypeEnum
- type VendorNameEnum
- type VendorOffer
- type VendorProduct
- type VolumetricTypeEnum
Constants ¶
This section is empty.
Variables ¶
View Source
var DYNAMO_SERVER *ddb.Server
View Source
var LOGGER *log.Logger
View Source
var TEST_TABLE_SUFFIX string
Functions ¶
func DeleteVendorProduct ¶
func GetCurrentTime ¶
func GetInstanceConfig ¶
func GetLastVendorOffer ¶
func GetLastVendorOffer(vendorProductId string) chan *VendorOffer
func GetProduct ¶
func GetVendorOfferCount ¶
func GetVendorProduct ¶
func GetVendorProduct(vendorProductId string) chan *VendorProduct
func GetVendorProductList ¶
func GetVendorProductList(afterDate int64) chan map[string]VendorProduct
func PutProduct ¶
func PutVendorOffer ¶
func PutVendorOffer(vendorOffer VendorOffer) chan bool
func PutVendorProduct ¶
func PutVendorProduct(vendorProd VendorProduct) chan bool
func SetDynamoConfig ¶
func SetDynamoConfig(accessKey, secretKey, regionText string)
func SetTestTableSuffix ¶
func SetTestTableSuffix(suffix string)
Types ¶
type AvailabilityEnum ¶
type AvailabilityEnum string //"available","unavailable","unknown"
type Product ¶
type Product struct { Name string UPC string ProductType ProductTypeEnum VolumetricType VolumetricTypeEnum VolumetricAmount float64 }
type ProductTypeEnum ¶
type ProductTypeEnum string //toothpaste,ketchup,shampoo,laundrydetergent,peanutbutter,clingwrap,toiletpaper,plasticcutlery,paperplates,plasticcups,ziplocbag,trashbags,papertowels,macncheese,napkin
type VendorNameEnum ¶
type VendorNameEnum string //"amazon", "walmart"
type VendorOffer ¶
type VendorProduct ¶
type VendorProduct struct { VendorName VendorNameEnum VendorProductId string UPC string Count int LastRetrieveDate int64 }
type VolumetricTypeEnum ¶
type VolumetricTypeEnum string //floz,oz,gram,unit,sqft
Click to show internal directories.
Click to hide internal directories.