Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string `envconfig:"NAME" default:"candi-api-expected"` APIPort string `envconfig:"PORT" default:"8080"` MysqlHost string `envconfig:"MYSQL_HOST" default:"localhost"` MysqlPort string `envconfig:"MYSQL_PORT" default:"3306"` MysqlUsername string `envconfig:"MYSQL_USERNAME" default:"herryg91"` MysqlDBName string `envconfig:"MYSQL_DB_NAME" default:"demo"` MysqlPassword string `envconfig:"MYSQL_PASSWORD" default:"password"` MysqlMaxOpenConnection int `envconfig:"MYSQL_MAX_OPEN_CONNECTION" default:"10"` MysqlMaxIdleConnection int `envconfig:"MYSQL_MAX_IDLE_CONNECTION" default:"5"` MysqlMaxLifetimeConnection int `envconfig:"MYSQL_MAX_LIFETIME_CONNECTION" default:"1"` MysqlLogMode bool `envconfig:"MYSQL_LOG_MODE" default:"true"` }
Click to show internal directories.
Click to hide internal directories.