Documentation ¶
Index ¶
Constants ¶
View Source
const ( APP_PORT envKey = "APP_PORT" APP_WHITELIST envKey = "APP_WHITELIST" DB_HOST envKey = "DB_HOST" DB_PORT envKey = "DB_PORT" DB_USER envKey = "DB_USER" DB_PASSWORD envKey = "DB_PASSWORD" DB_NAME envKey = "DB_NAME" DB_SSL_MODE envKey = "DB_SSL_MODE" JWT_EXPIRE_TIME envKey = "JWT_EXPIRE_TIME" JWT_SECRET_KEY envKey = "JWT_SECRET_KEY" JWT_COST envKey = "JWT_COST" )
Variables ¶
This section is empty.
Functions ¶
func GetArrayOfStringEnv ¶
func GetArrayOfStringEnv(key envKey) []string
func GetStringEnv ¶
func GetStringEnv(key envKey) string
func LoadEnvVariables ¶
func LoadEnvVariables()
func StringToInt ¶
Types ¶
type Config ¶
func GenerateConfig ¶
func GenerateConfig() *Config
func GetInstance ¶
func GetInstance() *Config
Click to show internal directories.
Click to hide internal directories.