Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct { ServerPort string `mapstructure:"SERVER_PORT"` Environment string `mapstructure:"ENV"` LogLevel string `mapstructure:"LOG_LEVEL"` DBUsername string `mapstructure:"DB_USER"` DBPassword string `mapstructure:"DB_PASS"` DBHost string `mapstructure:"DB_HOST"` DBPort string `mapstructure:"DB_PORT"` DBName string `mapstructure:"DB_NAME"` DBMigrationsDirectory string `mapstructure:"DB_MIGRATION_DIR"` DBDriver string `mapstructure:"DB_DRIVER"` JWTSecret string `mapstructure:"JWT_SECRET"` RabbitMQUser string `mapstructure:"RABBITMQ_USER"` RabbitMQPassword string `mapstructure:"RABBITMQ_PASSWORD"` RabbitMQHost string `mapstructure:"RABBITMQ_HOST"` }
Env has environment stored.
func NewEnvWithPath ¶
NewEnvWithPath creates a new environment.
func (Env) ToDatabaseDsn ¶
Click to show internal directories.
Click to hide internal directories.