config

package
v0.0.0-...-9a826e6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 1 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 {
	DBHost            string `env:"POSTGRES_HOST,required"`
	DBPort            int    `env:"POSTGRES_PORT,required"`
	DBUser            string `env:"POSTGRES_USER,required"`
	DBPassword        string `env:"POSTGRES_PASSWORD,required"`
	DBName            string `env:"POSTGRES_NAME,required"`
	SigningKey        string `env:"SIGNING_KEY,required"`
	GoogleCredentials string `env:"GOOGLE_CREDENTIALS,required"`
	SendGridAPIKey    string `env:"SENDGRID_API_KEY"`
	Domain            string `env:"DOMAIN,required"`
	RedirectURL       string `env:"REDIRECT_URL,required"`
}

Config contains the env variables needed to run the servers

func NewFromEnv

func NewFromEnv() (Config, error)

Jump to

Keyboard shortcuts

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