configs

package
v0.0.0-...-95ef5b1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnvs

func LoadEnvs() error

Types

type EnvConfig

type EnvConfig struct {
	ServingPort   string `mapstructure:"SERVING_PORT"`
	DbHost        string `mapstructure:"DB_HOST"`
	DbPort        string `mapstructure:"DB_PORT"`
	DbName        string `mapstructure:"DB_NAME"`
	DbUser        string `mapstructure:"DB_USER"`
	DbPassword    string `mapstructure:"DB_PASSWORD"`
	SecretKey     string `mapstructure:"SECRET_KEY"`
	JwtSecretKey  string `mapstructure:"JWT_SECRET_KEY"`
	TokenLifeTime string `mapstructure:"TOKEN_LIFETIME"`
}
var ENVs EnvConfig

Jump to

Keyboard shortcuts

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