diff options
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -12,8 +12,7 @@ import ( ) var config struct { - Server_name string `scfg:"server_name"` - Routes map[string]string `scfg:"routes"` + Server_name string `scfg:"server_name"` TLS struct { Cert string `scfg:"cert"` Key string `scfg:"key"` @@ -25,8 +24,8 @@ var config struct { _tls_config *tls.Config } var ( - config_mutex sync.RWMutex // covers things like the database too - global_db *pgxpool.Pool + config_mutex sync.RWMutex // covers things like the database too + global_db *pgxpool.Pool // only call Close() after replacing this global variable ) // load_config loads the configuration file and sets up global things according |