config

package
v0.0.0-...-de9ab70 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 4 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 {
	Environment        string        `env:"ENVIRONMENT,required"`
	LogFilePath        string        `env:"LOG_FILE_PATH"`
	Port               string        `env:"PORT" envDefault:"3000"`
	AllowOrigins       string        `env:"ALLOW_ORIGINS,required"`
	AllowHeaders       string        `env:"ALLOW_HEADERS,required"`
	Version            string        `env:"VERSION,required"`
	PostgresURL        string        `env:"POSTGRES_URL,required"`
	JWTSecret          string        `env:"JWT_SECRET,required"`
	AccessTokenExpiry  time.Duration `env:"ACCESS_TOKEN_EXPIRY,required"`
	RefreshTokenExpiry time.Duration `env:"REFRESH_TOKEN_EXPIRY,required"`
}

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

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