From f2ac0d970c0987c4ba70a111a5f52a493f712c91 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Sat, 21 May 2016 21:35:41 +0100 Subject: Remove database config. Not needed. --- server/config/config.go | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'server/config/config.go') diff --git a/server/config/config.go b/server/config/config.go index bf5bfc7..7598f0a 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -8,10 +8,9 @@ import ( // Config holds the values from the json config file. type Config struct { - Server Server `mapstructure:"server"` - Auth Auth `mapstructure:"auth"` - SSH SSH `mapstructure:"ssh"` - Database Database `mapstructure:"database"` + Server Server `mapstructure:"server"` + Auth Auth `mapstructure:"auth"` + SSH SSH `mapstructure:"ssh"` } // Server holds the configuration specific to the web server and sessions. @@ -23,15 +22,6 @@ type Server struct { CookieSecret string `mapstructure:"cookie_secret"` } -// Database holds the configuration specific to database functions. -type Database struct { - DbType string `mapstructure:"dbtype"` - Host string `mapstructure:"host"` - User string `mapstructure:"user"` - Password string `mapstructure:"password"` - DB string `mapstructure:"db"` -} - // Auth holds the configuration specific to the OAuth provider. type Auth struct { OauthClientID string `mapstructure:"oauth_client_id"` -- cgit v1.2.3