config

package
v0.0.0-...-1317d33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL