Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Env string `yaml:"env" env-required:"true"` Postgres Postgres `yaml:"postgres" env-required:"true"` HTTPServer HTTPServer `yaml:"http_server" env-required:"true"` }
type HTTPServer ¶
type HTTPServer struct { Address string `yaml:"address" env-default:"localhost:8080"` Timeout time.Duration `yaml:"timeout" env-default:"4s"` IdleTimeout time.Duration `yaml:"idleTimeout" env-default:"60s"` User string `yaml:"user" env-required:"true"` Password string `yaml:"password" env-required:"true" env:"HTTP_SERVER_PASSWORD"` }
Click to show internal directories.
Click to hide internal directories.