view config/config.go @ 33:ae6535d44563

Make password readable. Moved Layout to separate file. Password is now readable via toggle (eye-symbol). To improve readability, style extracted to separate file.
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 26 Jun 2018 14:07:13 +0200
parents 714787accd26
children 29e56c342c9f
line wrap: on
line source

package config

var Config = NewConfiguration()

type Configuration struct {
	DBHost    string
	DBPort    uint
	DBName    string
	DBSSLMode string
}

func NewConfiguration() *Configuration {
	// TODO: Load from file.
	return &Configuration{
		DBHost:    "localhost",
		DBPort:    5432,
		DBName:    "gemma",
		DBSSLMode: "require",
	}
}