Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultHost = func() string { return viper.GetString("host_default") } RootDomain = func() string { return viper.GetString("root_domain") } ListenHTTP = func() string { return viper.GetString("listen_http") } ListenHTTPS = func() string { return viper.GetString("listen_https") } LogLevel = func() string { return viper.GetString("log_level") } LogFormat = func() string { return viper.GetString("log_format") } LogOutput = func() string { return viper.GetString("log_output") } LogPretty = func() bool { return viper.GetBool("log_pretty") } AccessLogOutput = func() string { return viper.GetString("log_access_output") } GoogleRecaptchaSecret = func() string { return viper.GetString("google_recaptcha_secret") } ConsoleProxyURL = func() string { return viper.GetString("console_proxy_url") } )
define main configs.
View Source
var ( // JSONLogFormatter formats logs into parsable json. JSONLogFormatter = &log.JSONFormatter{TimestampFormat: "2006-01-02T15:04:05.000-07:00", CallerPrettyfier: callerPretty, DisableHTMLEscape: true} // TextLogFormatter formats logs into text. TextLogFormatter = &log.TextFormatter{TimestampFormat: "2006-01-02T15:04:05.000-07:00", FullTimestamp: true, CallerPrettyfier: callerPretty} )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.