config

package
v0.0.0-...-358fae8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 2 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 {
	DbHost string `mapstructure:"SLB_DB_HOST"`
	DbPort int    `mapstructure:"SLB_DB_PORT"`
	DbUser string `mapstructure:"POSTGRES_USER"`
	DbPass string `mapstructure:"POSTGRES_PASSWORD"`
	DbName string `mapstructure:"POSTGRES_DB"`
}

Config contains the application configuration, to be unmarshalled into by Viper.

func Get

func Get() (Config, error)

Get looks in ./config.env and environment variables for needed values.

Jump to

Keyboard shortcuts

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