Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
HTTPServer
}
func Load ¶
func Load() (Configuration, error)
type HTTPServer ¶
type HTTPServer struct { IdleTimeout time.Duration `envconfig:"HTTP_SERVER_IDLE_TIMEOUT" default:"60s"` Port int `envconfig:"PORT" default:"8080"` ReadTimeout time.Duration `envconfig:"HTTP_SERVER_READ_TIMEOUT" default:"1s"` WriteTimeout time.Duration `envconfig:"HTTP_SERVER_WRITE_TIMEOUT" default:"2s"` }
Click to show internal directories.
Click to hide internal directories.