ConsumablePriceIndex

package module
v0.0.0-...-bc218b3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2015 License: GPL-2.0 Imports: 14 Imported by: 0

README

ConsumablePriceIndex

Purpose

the ConsumablePriceIndex started out as sort of a Virtual Consumer Price Index whose purpose quickly morphed into tracking prices and sales of specific consumables that my family uses regularly. the idea is to identify exactly when ordering these consumables online would be more cost effective than going to a local store. maintaining a historical record of consumable prices for research purposes remains as a secondary goal of the project.

Setup

use the sample.config to put your specific data for both amazon and walmart api's. rename it to ~/.cpi/config.

the amazon Product API does not support IAM authentication, so we use the IAM role access for dynamodb to read encryption passwords from the db for the product api.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CPICONFIG map[string]string
View Source
var ENC_KEY string
View Source
var FILETOENCRYPT string

Functions

func GetCpiConfig

func GetCpiConfig() map[string]string

func SaveConfigFile

func SaveConfigFile(encryptProps bool)

func SetConfigFile

func SetConfigFile(filename string)

func SetEncKey

func SetEncKey(enc_key string)

Types

type BaseVendorService

type BaseVendorService struct {
	VendorService
}

type RetrieveVendorOfferResult

type RetrieveVendorOfferResult struct {
	Data      *data.VendorOffer
	Error     error
	CheckData map[string]string
}

type VendorService

type VendorService interface {
	RetrieveVendorOffer(id string) chan *RetrieveVendorOfferResult
	SetupNewProduct(id string, values map[string]string) error
	GetVendorName() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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