Mercurial > gemma
comparison pkg/config/config.go @ 1334:6a439a92abf7
Removed public access to config.ConfigFile to make golint happy.
The getter was not used anyhow.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 25 Nov 2018 23:44:52 +0100 |
parents | 5443f5c9154c |
children | a25a4d4a3e6e |
comparison
equal
deleted
inserted
replaced
1333:8c6b5d47a7ff | 1334:6a439a92abf7 |
---|---|
28 ) | 28 ) |
29 | 29 |
30 // This is not part of the persistent config. | 30 // This is not part of the persistent config. |
31 var configFile string | 31 var configFile string |
32 | 32 |
33 func ConfigFile() string { return configFile } | |
34 | |
35 func DBHost() string { return viper.GetString("db-host") } | 33 func DBHost() string { return viper.GetString("db-host") } |
36 func DBPort() uint { return uint(viper.GetInt32("db-port")) } | 34 func DBPort() uint { return uint(viper.GetInt32("db-port")) } |
37 func DBName() string { return viper.GetString("db-name") } | 35 func DBName() string { return viper.GetString("db-name") } |
38 func DBUser() string { return viper.GetString("db-user") } | 36 func DBUser() string { return viper.GetString("db-user") } |
39 func DBPassword() string { return viper.GetString("db-password") } | 37 func DBPassword() string { return viper.GetString("db-password") } |