Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { // Load initializes the application and its dependencies configuration. Load() (*Container, error) }
Config is an interface that defines the methods for the configuration loader.
type Database ¶
type Database struct { Conn string `mapstructure:"DB_CONNECTION"` Host string `mapstructure:"DB_HOST"` Port string `mapstructure:"DB_PORT"` Name string `mapstructure:"DB_NAME"` Username string `mapstructure:"DB_USERNAME"` Password string `mapstructure:"DB_PASSWORD"` MaxLifeTime int `mapstructure:"DB_MAX_LIFE_TIME"` MaxOpenConn int `mapstructure:"DB_MAX_OPEN_CONNECTIONS"` MaxIdleConn int `mapstructure:"DB_MAX_IDLE_CONNECTIONS"` }
Database contains the configuration for the database.
type Http ¶
type Http struct { Url string `mapstructure:"HTTP_URL"` Port string `mapstructure:"HTTP_PORT"` AllowedOrigins string `mapstructure:"HTTP_ALLOWED_ORIGINS"` }
Http contains the configuration for the http server.
Click to show internal directories.
Click to hide internal directories.