Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Host of the server.
Host string `env:"HOST,required"`
// Port of the server.
Port string `env:"PORT,required"`
// Timeout of the server.
Timeout TimeoutConfig `envPrefix:"TIMEOUT_"`
}
type TimeoutConfig ¶
type TimeoutConfig struct {
// ReadTimeout of the server.
ReadTimeout string `env:"READ,required"`
// WriteTimeout of the server.
WriteTimeout string `env:"WRITE,required"`
}
TimeoutConfig holds the configuration for the timeouts of the server.
Click to show internal directories.
Click to hide internal directories.