Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DB struct { Host string `envconfig:"DB_HOST"` Port int `envconfig:"DB_PORT"` User string `envconfig:"DB_USER"` Pass string `envconfig:"DB_PASS"` Name string `envconfig:"DB_NAME"` ConnLimit int `envconfig:"DB_CONN_LIMIT"` } Server struct { Port int `envconfig:"SERVER_PORT" default:"8080"` ShutdownPeriod time.Duration `envconfig:"SERVER_SHUTDOWN_PERIOD" default:"5s"` } }
Config is the configuration struct
Click to show internal directories.
Click to hide internal directories.