config

package
v0.0.0-...-efa4506 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: GPL-2.0 Imports: 9 Imported by: 1

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, error)

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