config

package
v0.0.0-...-3322d40 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config map[string]string

Config is the in-memory store for the loaded configuration.

Functions

func Load

func Load(c context.Context) map[string]string

Load uses the suppplies context to load configuration data - a map - based on the environement. If the environment is the appengine development server, it loads the configuration from the local config.yaml file. If the environment is the production appengine server, it loads config.yaml from the default Google Cloud Storage bucket. Once loaded, the config is stored in memory for quicker access.

Types

This section is empty.

Jump to

Keyboard shortcuts

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