Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PostgresUser string `envconfig:"POSTGRES_USER" required:"true"` PostgresPassword string `envconfig:"POSTGRES_PASSWORD" required:"true"` PostgresDb string `envconfig:"POSTGRES_DB" required:"true"` PostgresHost string `envconfig:"POSTGRES_HOST" required:"true"` PostgresDatabaseContainerName string `envconfig:"POSTGRES_DATABASE_CONTAINER_NAME" required:"true"` }
Config holds all configuration needed by this app.
func Read ¶
Read reads configuration from environment variables. It assumes that an '.env' file is present at current path.
func ReadFromEnvFile ¶
ReadFromEnvFile reads configuration from the specified environment file.
Click to show internal directories.
Click to hide internal directories.