Mercurial > gemma
comparison config/config.go @ 221:696c19abe869
Argh! If one is using its own storage for config like we do
the config loaded by viper needs to be injected back into
cobra [https://github.com/spf13/cobra/issues/367].
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 24 Jul 2018 18:21:31 +0200 |
parents | 11d1a488b08f |
children | 0777aa6de45b |
comparison
equal
deleted
inserted
replaced
220:11d1a488b08f | 221:696c19abe869 |
---|---|
1 package config | 1 package config |
2 | 2 |
3 var Config Configuration | 3 var Config Configuration |
4 | 4 |
5 type Configuration struct { | 5 type Configuration struct { |
6 File string | |
7 DBHost string | 6 DBHost string |
8 DBPort uint | 7 DBPort uint |
9 DBName string | 8 DBName string |
10 DBSSLMode string | 9 DBSSLMode string |
11 | 10 |