102beb11e3
* Right now, the two environments are Public and Private * This was to reflect the two blockchains we run against
14 lines
268 B
Go
14 lines
268 B
Go
package config
|
|
|
|
import "fmt"
|
|
|
|
type Database struct {
|
|
Hostname string
|
|
Name string
|
|
Port int
|
|
}
|
|
|
|
func DbConnectionString(dbConfig Database) string {
|
|
return fmt.Sprintf("postgresql://%s:%d/%s?sslmode=disable", dbConfig.Hostname, dbConfig.Port, dbConfig.Name)
|
|
}
|