Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEVELOPER = "developer" HOMOLOGATION = "homologation" PRODUCTION = "production" TARGET_DEPLOY_LOCAL = "local" TARGET_DEPLOY_NUVEM = "nuvem" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobStorage ¶ added in v0.5.0
type Config ¶
type Config struct { AppName string `json:"app_name"` AppMode string `json:"app_mode"` AppLogLevel string `json:"app_log_level"` AppTargetDeploy string `json:"app_target_deploy"` AppCommitShortSha string `json:"commit_short_sha"` AppVersion string `json:"version"` *HttpConfig *MongoDBConfig *RedisDBConfig *PGSQLConfig *RMQConfig *BlobStorage // contains filtered or unexported fields }
func NewDefaultConf ¶ added in v0.8.0
func NewDefaultConf() *Config
func (*Config) GetGlobalLogger ¶ added in v0.8.0
func (*Config) SetGlobalLogger ¶ added in v0.8.0
type HttpConfig ¶
type MongoDBConfig ¶
type PGSQLConfig ¶
type PGSQLConfig struct { DB_DRIVE string `json:"db_drive"` DB_HOST string `json:"db_host"` DB_PORT string `json:"db_port"` DB_USER string `json:"db_user"` DB_PASS string `json:"db_pass"` DB_NAME string `json:"db_name"` DB_SSL_MODE bool `json:"db_ssl_mode"` DB_CONNECT_TIMEOUT int `json:"db_connect_timeout"` DB_DSN string `json:"-"` DB_SET_MAX_OPEN_CONNS int `json:"db_set_max_open_conns"` DB_SET_MAX_IDLE_CONNS int `json:"db_set_max_idle_conns"` DB_SET_CONN_MAX_LIFE_TIME int `json:"db_set_conn_max_life_time"` }
Click to show internal directories.
Click to hide internal directories.