config

package
v0.0.0-...-7fe62e4 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DatabaseAddresses  string
	DatabaseUsername   string
	DatabseUserPassord string
	Database           string
}

Config contains the config.yml settings

func GetConfig

func GetConfig(env Env) *Config

GetConfig reads the configuration file and returns a new config

type Env

type Env struct {
	Environment      string
	DatabasePassword string
	ProjectRootPath  string
}

Env contains the environment variables

func GetEnvVariables

func GetEnvVariables() *Env

GetEnvVariables gets the environment variables and returns a new env struct

func GetTestingEnvVariables

func GetTestingEnvVariables() *Env

GetTestingEnvVariables returns env variables for testing

Jump to

Keyboard shortcuts

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