Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLogger ¶
func ConfigureLogger() error
Types ¶
type HttpServerConf ¶
type HttpServerConf struct { Port uint16 `envconfig:"HTTP_PORT" default:"8080"` GracefulTime time.Duration `envconfig:"HTTP_GRACEFUL_TIME" default:"30s"` ReadTimeout time.Duration `envconfig:"HTTP_READ_TIMEOUT" default:"5s"` WriteTimeout time.Duration `envconfig:"HTTP_WRITE_TIMEOUT" default:"10s"` IdleTimeout time.Duration `envconfig:"HTTP_IDLE_TIMEOUT" default:"90s"` }
var HealthHttpServerConfig HttpServerConf
var HttpServerConfig HttpServerConf
type MySqlConf ¶
type MySqlConf struct { Host string `envconfig:"MYSQL_HOST" default:"localhost"` Port uint16 `envconfig:"MYSQL_PORT" default:"3306"` Timeout time.Duration `envconfig:"MYSQL_TIMEOUT" default:"5000ms"` Threshold time.Duration `envconfig:"MYSQL_THRESHOLD" default:"500ms"` User string `envconfig:"MYSQL_USER" default:"srvuser"` Passwd string `envconfig:"MYSQL_PASSWD" default:"srvuser"` Database string `envconfig:"MYSQL_DATABASE" default:"users"` }
var MySqlConfig MySqlConf
Click to show internal directories.
Click to hide internal directories.