Documentation
¶
Overview ¶
Package config loads framework configuration from environment variables and .env files. It deliberately does not depend on viper or other heavy configuration libraries — applications often need full control over their configuration source, and lagodev only requires a handful of values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromEnv ¶
FromEnv constructs a database.Config from environment variables.
DB_CONNECTION (driver), DB_HOST, DB_PORT, DB_USERNAME, DB_PASSWORD, DB_DATABASE, DB_SCHEMA, DB_SSL_MODE, DB_TIMEZONE, DB_LOG_QUERIES, DB_SLOW_QUERY, DB_MAX_OPEN, DB_MAX_IDLE.
Useful for 12-factor apps that prefer env-driven config.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.