config

package
v0.0.0-...-4489571 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	DBBizNome     string `json:"DBBizNome" env:"DB_BIZ_NOME"`
	DBBizHost     string `json:"DBBizHost" env:"DB_BIZ_HOST"`
	DBBizPorta    int    `json:"DBBizPorta" env:"DB_BIZ_PORTA"`
	DBBizUser     string `json:"DBBizUser" env:"DB_BIZ_USER"`
	DBBizPassword string `json:"DBBizPassword" env:"DB_BIZ_PASSWORD"`
	EnableLogFile bool   `json:"enableLogFile" env:"ENABLE_LOG_FILE"`
	LogFile       string `json:"logFile" env:"LOG_FILE"`
	RedisHost     string `json:"redisHost" env:"REDIS_HOST"`
	RedisSenha    string `json:"redisSenha" env:"REDIS_SENHA"`
	Port          int    `json:"port" env:"PORT"`
	AllowedParam  string `json:"allowedParam" env:"ALLOWED_PARAM"`
}

Settings ...

func Config

func Config() *Settings

Config ...

func NewConfig

func NewConfig(file string) *Settings

NewConfig ...

Jump to

Keyboard shortcuts

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