Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBConfig ¶
type DBConfig struct { Host string `envconfig:"DB_HOST" default:"0.0.0.0" required:"true" desc:"Hostname or IP of the database server"` Port int `envconfig:"DB_PORT" default:"27017" required:"true" desc:"Port of the database server"` User string `envconfig:"DB_USER" required:"true" desc:"User for authentication in the database"` Pass string `envconfig:"DB_PASSWORD" required:"true" desc:"Password for authentication in the database"` Name string `envconfig:"DB_NAME" required:"true" desc:"Name of the database"` Mech string `envconfig:"DB_MECH" required:"false" desc:"Authentication mechanism of the database (optional)"` }
DBConfig represents environment variable configuration parameters for database.
Click to show internal directories.
Click to hide internal directories.