Documentation
¶
Overview ¶
Package config takes care of the configuration file parsing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Database *DatabaseConfig `json:"database"`
}
Config is the main configuration structure.
func ReadConfig ¶
ReadConfig reads a JSON formatted configuration file, verifies the values of the configuration parameters and fills the Config structure.
type DatabaseConfig ¶
type DatabaseConfig struct {
HostName string `json:"hostname"`
Port int `json:"port"`
UserName string `json:"username"`
Password string `json:"password"`
DBName string `json:"dbname"`
// Can take values: disable, require, verify-ca or verify-full
SSLMode string `json:"ssl_mode"`
}
DatabaseConfig is a configuration for PostgreSQL database connection information
Click to show internal directories.
Click to hide internal directories.