config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() error

Types

type Cart

type Cart struct {
	Name    string
	Created time.Time
	CartId  string
	HMAC    string
}

type Config

type Config struct {
	Version     string
	Locale      string
	ResultCache map[string]map[string]string
	Carts       map[string]*Cart
}

func GetConfig

func GetConfig() *Config

func (Config) ASINFromCache

func (c Config) ASINFromCache(cache string, item string) (string, bool)

func (Config) CartItemIdFromCache

func (c Config) CartItemIdFromCache(cartName string, item string) (string, bool)

func (Config) CartNameFromCache

func (c Config) CartNameFromCache(indexOrName string) string

func (*Config) Flush

func (c *Config) Flush()

func (Config) FromCache

func (c Config) FromCache(cache string, key string) (string, bool)

func (Config) NumericFromCache

func (c Config) NumericFromCache(cache string, index string) string

Jump to

Keyboard shortcuts

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