Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string `toml:"host" mapstructure:"host"`
Port int `toml:"port" mapstructure:"port"`
BaseURL string `toml:"baseUrl" mapstructure:"baseUrl"`
SessionSecret string `toml:"sessionSecret" mapstructure:"sessionSecret"`
LogLevel string `toml:"logLevel" mapstructure:"logLevel"`
LogPath string `toml:"logPath" mapstructure:"logPath"`
DataDir string `toml:"dataDir" mapstructure:"dataDir"`
PprofEnabled bool `toml:"pprofEnabled" mapstructure:"pprofEnabled"`
HTTPTimeouts HTTPTimeouts `toml:"httpTimeouts" mapstructure:"httpTimeouts"`
}
Config represents the application configuration
type HTTPTimeouts ¶
type HTTPTimeouts struct {
ReadTimeout int `toml:"readTimeout" mapstructure:"readTimeout"` // seconds
WriteTimeout int `toml:"writeTimeout" mapstructure:"writeTimeout"` // seconds
IdleTimeout int `toml:"idleTimeout" mapstructure:"idleTimeout"` // seconds
}
HTTPTimeouts represents HTTP server timeout configuration
Click to show internal directories.
Click to hide internal directories.