Documentation ¶
Index ¶
- func LoadConfig() error
- type Cart
- type Config
- func (c Config) ASINFromCache(cache string, item string) (string, bool)
- func (c Config) CartItemIDFromCache(cartName string, item string) (string, bool)
- func (c Config) CartNameFromCache(indexOrName string) string
- func (c *Config) Flush()
- func (c Config) FromCache(cache string, key string) (string, bool)
- func (c Config) NumericFromCache(cache string, index string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Version string Locale string ResultCache map[string]map[string]string Carts map[string]*Cart }
Config is the top level config structure
func (Config) ASINFromCache ¶
ASINFromCache returns a asin from a named cache
func (Config) CartItemIDFromCache ¶ added in v0.1.2
CartItemIDFromCache returns a cart item ID from a named cart
func (Config) CartNameFromCache ¶
CartNameFromCache returns a cart name from the cart cache
Click to show internal directories.
Click to hide internal directories.