Drop dupe 'Connection' in namespace

parent 113ae760
{
"API": {
"BaseURL": "http://localhost:9991",
"PathPrefix": "v1/",
"Bind": ":9991",
"API": {
"BaseURL": "http://localhost:9991",
"PathPrefix": "v1/",
"Bind": ":9991",
"SwaggerAPIPath": "/apidocs.json",
"SwaggerPath": "/apidocs/",
"SwaggerFilePath": "/home/ubuntu/swagger-ui/dist",
"ImageFilePath": "/home/ubuntu/sangha_images"
},
"Connections": {
"PostgreSQLConnection": {
"Host": "localhost",
"DbName": "sangha",
"User": "user",
"Password": "password",
"Port": 5432,
"SslMode": "disable"
},
"SwaggerAPIPath": "/apidocs.json",
"SwaggerPath": "/apidocs/",
"SwaggerFilePath": "/home/ubuntu/swagger-ui/dist",
"ImageFilePath": "/home/ubuntu/sangha_images"
},
"AMQPConnection": {
"Host": "localhost",
"User": "user",
"Password": "password",
"Port": 5672,
"Broker": "rabbit",
"Queue": "payments"
}
"Connections": {
"PostgreSQL": {
"Host": "localhost",
"DbName": "sangha",
"User": "user",
"Password": "password",
"Port": 5432,
"SslMode": "disable"
},
"PaymentProviders": {
"PayPal": {
"ClientID": "clientid",
"Secret": "secret"
}
},
"AMQP": {
"Host": "localhost",
"User": "user",
"Password": "password",
"Port": 5672,
"Broker": "rabbit",
"Queue": "payments"
}
},
"Web": {
"BaseURL": "http://localhost:4200/"
"PaymentProviders": {
"PayPal": {
"ClientID": "clientid",
"Secret": "secret"
}
},
"Web": {
"BaseURL": "http://localhost:4200/"
}
}
......@@ -151,7 +151,7 @@ func main() {
ch, shutdownGracefully := handleSignals()
config.ParseSettings()
db.SetupPostgres(config.Settings.Connections.PostgreSQLConnection)
db.SetupPostgres(config.Settings.Connections.PostgreSQL)
context := &db.APIContext{
Config: *config.Settings,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment