Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEVELOPER = "developer" HOMOLOGATION = "homologation" PRODUCTION = "production" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Mode string `json:"mode"` *HttpConfig *MongoDBConfig *RedisDBConfig *PGSQLConfig *RMQConfig }
type HttpConfig ¶
type HttpConfig struct {
PORT string `json:"port"`
}
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_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.