Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadAllConfigs ¶
func LoadAllConfigs(envFile string)
This function dedicated to the read env file from the project directory Expect env file path from where env will loaded using godotev package LoadAllConfigs set various configs
Types ¶
type DB ¶
type DB struct { Host string Port int SslMode string Name string User string Password string Debug bool MaxOpenConn int MaxIdleConn int MaxConnLifetime time.Duration }
DB holds the DB configuration
type NiomCli ¶ added in v0.1.8
type NiomCli struct { ModuleName string `json:"module_name"` AppName string `json:"app_name"` SourceRoot string `json:"source_root"` ConfigFile string `json:"config_file"` }
NiomCli holds niom-app details
func GetNiomCliConfig ¶ added in v0.1.7
func GetNiomCliConfig() *NiomCli
GetNiomCliConfig return niom-app details
Click to show internal directories.
Click to hide internal directories.