Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Debug bool `envconfig:"DEBUG" default:"false"` FirebaseCredentials string `envconfig:"FIREBASE_ACCOUNT_KEY" required:"true"` PostgresHost string `envconfig:"POSTGRES_HOST" default:"localhost"` PostgresPort int `envconfig:"POSTGRES_PORT" default:"5432"` PostgresUser string `envconfig:"POSTGRES_USER" default:"upmeet"` PostgresPassword string `envconfig:"POSTGRES_PASSWORD" default:"upmeet"` PostgresDatabase string `envconfig:"POSTGRES_DATABASE" default:"upmeet"` PostgresSSLMode string `envconfig:"POSTGRES_SSLMODE" default:"disable"` BindAddress string `envconfig:"BIND_ADDRESS" default:":3000"` }
Config holds the configuration for the application.
func LoadConfig ¶
func LoadConfig() *Config
LoadConfig loads the configuration from the environment.
Click to show internal directories.
Click to hide internal directories.