MCPcopy Create free account
hub / github.com/dreamsofcode-io/zenstats / Database

Struct Database

internal/config/database.go:12–19  ·  view source on GitHub ↗

Database holds the configuration data for setting up a connection to a database.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected