Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Host of the database.
Host string `env:"HOST,required"`
// Port of the database.
Port string `env:"PORT,required"`
// User of the database.
User string `env:"USER" envDefault:"user"`
// Password of the database.
Password string `env:"PASSWORD,nonempty"`
SslConfig `envPrefix:"SSL_"`
}
Config holds the configuration for the database.
Click to show internal directories.
Click to hide internal directories.