Documentation
¶
Overview ¶
Package configuration returns a configuration gathered from configuration.json file
Index ¶
Constants ¶
View Source
const ( // CONFILENAME is the configuration file name CONFILENAME = "configuration.json" // PRODUCTION is used to attach the db to docker PRODUCTION = "production" // DOCKERHOST is the docker container name DOCKERHOST = "db" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { // Environment represents the working environment Environment string `json:"environment"` // Server embeds environment variables used to initialize the server Server Server `json:"SERVER"` // PSQL embeds environment variables used to initialize PSQL connection PSQL PSQL `json:"PSQL"` }
Configuration embeds environment variables used to initialize the system
func Get ¶
func Get() (*Configuration, error)
Get returns a *Configuration filled with values fetched from a configuration file confFileName
type PSQL ¶
type PSQL struct { // DriverName represents PSQL driver name DriverName string `json:"DRIVERNAME"` // DBName represents PSQL database table name DBName string `json:"DBNAME"` // User represents PSQL User User string `json:"USER"` // Host represents PSQL database host Host string `json:"HOST"` // SSLMode has value `disable` if no authentication is required SSLMode string `json:"SSLMODE"` }
PSQL embeds PSQL information
Click to show internal directories.
Click to hide internal directories.