configs

package
v0.0.0-...-e231e6d Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 1 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 {
	APP_NAME         string `mapstructure:"APP_NAME"`
	PORT             string `mapstructure:"PORT"`
	GIN_MODE         string `mapstructure:"GIN_MODE"`
	APP_ENV          string `mapstructure:"APP_ENV"`
	TIMEOUT_REQ      int64  `mapstructure:"TIMEOUT_REQUEST"`
	LOCAL            string `mapstructure:"LOCAL"`
	BASE_URL_EDM     string `mapstructure:"BASE_URL_EDM"`
	USERNAME_BRIGATE string `mapstructure:"USERNAME_BRIGATE"`
	PASSWORD_BRIGATE string `mapstructure:"PASSWORD_BRIGATE"`
	DEBUG            bool   `mapstructure:"DEBUG"`
	DB_USERNAME      string `mapstructure:"DB_USERNAME"`
	DB_PASSWORD      string `mapstructure:"DB_PASSWORD"`
	DB_HOST          string `mapstructure:"DB_HOST"`
	DB_PORT          string `mapstructure:"DB_PORT"`
	DB_DATABASE      string `mapstructure:"DB_DATABASE"`
	TIME_LOCATION    string `mapstructure:"TIME_LOCATION"`
	REDIS_HOST       string `mapstructure:"REDIS_HOST"`
	REDIS_DB_QUEUE   string `mapstructure:"REDIS_DB_QUEUE"`
	REDIS_PASSWORD   string `mapstructure:"REDIS_PASSWORD"`
}
var Configs *Config

func LoadConfig

func LoadConfig(path string) (config Config, err error)

Jump to

Keyboard shortcuts

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