config

package
v0.0.0-...-e4becfe Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: MIT Imports: 7 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 {
	ConnectionString string `envconfig:"DATABASE_URL" default:"sqlite3://app.db"`
	LogLevel         string `envconfig:"LOG_LEVEL" default:"INFO"`
	Port             string `envconfig:"PORT" default:"8000"`
	DB               *gorm.DB
	RedisURL         string `envconfig:"REDIS_URL"`
}

Config wraps up the entire application configuration

func GetGlobalConfig

func GetGlobalConfig() *Config

GetGlobalConfig gets the current config for the app.

func NewConfig

func NewConfig() *Config

NewConfig returns an application configuration struct.

Jump to

Keyboard shortcuts

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