Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAndDefaults ¶
func ValidateAndDefaults(conf *Conf)
Types ¶
type Conf ¶
type Conf struct {
ListenAddress string `json:"listenAddress"`
ListenPort int `json:"listenPort"`
ServerReadTimeoutSecs int `json:"serverReadTimeoutSecs"`
ServerWriteTimeoutSecs int `json:"serverWriteTimeoutSecs"`
CorsAllowedOrigins []string `json:"corsAllowedOrigins"`
Corpora engine.CorporaConf `json:"corpora"`
DB *engine.DBConf `json:"db"`
LogFile string `json:"logFile"`
LogLevel logging.LogLevel `json:"logLevel"`
Language string `json:"language"`
TimeZone string `json:"timeZone"`
// contains filtered or unexported fields
}
Conf is a global configuration of the app
func LoadConfig ¶
func (*Conf) GetSourcePath ¶
GetSourcePath returns an absolute path of a file the config was loaded from.
func (*Conf) IsDebugMode ¶
func (*Conf) TimezoneLocation ¶
Click to show internal directories.
Click to hide internal directories.