bootstrap

package
v0.0.0-...-1426778 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 5 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 {
	AppPort    string
	DBHost     string
	DBPort     string
	DBDatabase string
	DBUsername string
	DBPassword string
	Logger     *logrus.Logger
	DBConn     *sql.DB
}

Config this is a general purpose struct where we can keep all the app configuration items in a singleton style object

func InitConfig

func InitConfig() (Config, error)

InitConfig this function will run and log out all the different environment variables if something isn't set correctly, it'll die and log the errors

Jump to

Keyboard shortcuts

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