config

package
v0.0.0-...-633c506 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvVar

func GetEnvVar(key, defaultVal string) string

GetEnvVar get the environmental variable for a key or return the specified default value.

func InitEnv

func InitEnv()

InitEnv initializes configuration settings to be used through out the app.

Types

type Environment

type Environment struct {
	DBHost string
	DBPort string
	DBName string
	DBUser string
	DBPass string
	DBConn string
}

Environment struct for storing configuration settings.

var Env Environment

Env set configuration struct

type Services

type Services struct {
	DB *sqlx.DB
}

Services is for a persistent database connections and other services

Jump to

Keyboard shortcuts

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