Documentation ¶
Overview ¶
Package config provides a configuration setup needed to run the app.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DB `mapstructure:",squash"` Auth `mapstructure:",squash"` Mailer `mapstructure:",squash"` RedisHost string `mapstructure:"REDIS_HOST"` MigrationURL string `mapstructure:"MIGRATION_URL"` DatabaseURL string `mapstructure:"DATABASE_URL"` HTTPServerAddress string `mapstructure:"HTTP_SERVER_ADDRESS"` }
type DB ¶
type DB struct { User string `mapstructure:"DB_USER"` Password string `mapstructure:"DB_PASSWORD"` Host string `mapstructure:"DB_HOST"` Name string `mapstructure:"DB_NAME"` MaxIdleConns int `mapstructure:"MAX_IDLE_CONNS"` MaxOpenConns int `mapstructure:"MAX_OPEN_CONNS"` DisableTLS bool `mapstructure:"DISABLE_TLS"` }
Click to show internal directories.
Click to hide internal directories.