Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Postgres ¶
type Postgres struct { User string `envconfig:"USER" required:"true"` Password string `envconfig:"PASSWORD" required:"true"` Host string `envconfig:"HOST" required:"true"` Port string `envconfig:"PORT" required:"true"` Database string `envconfig:"DATABASE" required:"true"` WithDebug bool `default:"false" envconfig:"WITH_DEBUG"` }
func (Postgres) ConnString ¶
type Redis ¶
type Redis struct { Host string `envconfig:"host" required:"true"` Port string `envconfig:"port" required:"true"` Pass string `envconfig:"pass"` DB int `default:"0" envconfig:"db"` }
func (*Redis) BuildAddressString ¶
type Server ¶
type Server struct { Host string `envconfig:"host" required:"true"` Port string `envconfig:"port" required:"true"` BodyLimit int `envconfig:"body_limit" required:"true"` ReadTimeout time.Duration `default:"30s" envconfig:"read_timeout"` WriteTimeout time.Duration `default:"30s" envconfig:"write_timeout"` ShutdownTimeout time.Duration `default:"30s" envconfig:"shutdown_timeout"` Mode string `envconfig:"mode" required:"true"` }
Click to show internal directories.
Click to hide internal directories.