config

package
v0.0.0-...-9896131 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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 {
	OtpTimeout                int // seconds
	ContextTimeout            int
	Environment               string // develop, staging, production
	LogLevel                  string // DEBUG, INFO ...
	HTTPPort                  string
	PostgresHost              string
	PostgresPort              string
	PostgresDatabase          string
	PostgresUser              string
	PostgresPassword          string
	PostgresConnectionTimeOut int // seconds
	PostgresConnectionTry     int
	BaseUrl                   string
	SMTPEmail                 string
	SMTPEmailPass             string
	SMTPHost                  string
	SMTPPort                  string
	SignInKey                 string
	AuthConfigPath            string
	CSVFilePath               string
	RedisHost                 string
	RedisPort                 string
	AccessTokenTimout         int // MINUTES
	MaxImageSize              int // Mb
	DefaultOtp                string
}

Config ...

func Load

func Load() Config

Load loads environment vars and inflates Config

Jump to

Keyboard shortcuts

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