Database holds the configuration data for setting up a connection to a database.
| 10 | // Database holds the configuration data for setting up a connection to a |
| 11 | // database. |
| 12 | type Database struct { |
| 13 | Username string |
| 14 | Password string |
| 15 | Host string |
| 16 | Port uint16 |
| 17 | DBName string |
| 18 | SSLMode string |
| 19 | } |
| 20 | |
| 21 | func loadPassword() (string, error) { |
| 22 | password, ok := os.LookupEnv("POSTGRES_PASSWORD") |
nothing calls this directly
no outgoing calls
no test coverage detected