config

package
v0.0.0-...-f20b4aa Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(env string, configPath string)

Types

type Config

type Config struct {
	Development EnvConfig `yaml:"development"`
	Test        EnvConfig `yaml:"test"`
	Production  EnvConfig `yaml:"production"`
}

type ConfigWrapper

type ConfigWrapper struct {
	Config Config
	// contains filtered or unexported fields
}

func GetConfigWrapper

func GetConfigWrapper() *ConfigWrapper

func (*ConfigWrapper) GetCurrent

func (configWrapper *ConfigWrapper) GetCurrent() *EnvConfig

type EnvConfig

type EnvConfig struct {
	MongoHost           string `yaml:"mongo_host"`
	Env                 string `yaml:"env"`
	EmailServerAddress  string `yaml:"email_server_address"`
	EmailServerPort     int    `yaml:"email_server_port"`
	EmailServerUsername string `yaml:"email_server_username"`
	EmailServerPassword string `yaml:"email_server_password"`
	EmailServerFrom     string `yaml:"email_server_from"`
	EmailServerBcc      string `yaml:"email_server_bcc"`
	LogPath             string `yaml:"log_path"`
	AdminAuth           string `yaml:"admin_auth"`
	DashboardBaseUrl    string `yaml:"dashboard_base_url"`
	SessionKey          string `yaml:"session_key"`
	GuestWebsiteUrl     string `yaml:"guest_website_url"`
}

Jump to

Keyboard shortcuts

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