config

package
v0.0.0-...-6a61234 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	CloudinaryCloudName       string
	CloudinaryAPIKey          string
	CloudinaryAPISecret       string
	ProjectName               string
	Debug                     string
	EmailOTPExpireSeconds     int64
	AccessTokenExpireMinutes  int
	RefreshTokenExpireMinutes int
	SecretKey                 string
	FrontendURL               string
	FirstSuperuserEmail       string
	FirstSuperuserPassword    string
	FirstClientEmail          string
	FirstClientPassword       string
	PostgresUser              string
	PostgresPassword          string
	PostgresServer            string
	PostgresPort              string
	PostgresDB                string
	TestPostgresDB            string
	MailSenderEmail           string
	MailSenderPassword        string
	MailSenderHost            string
	MailSenderPort            int
	CORSAllowedOrigins        string
	SocketSecret              string
}

Configuration holds the application configuration loaded from environment variables

func GetConfig

func GetConfig() *Configuration

GetConfig returns the application configuration

Jump to

Keyboard shortcuts

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