Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultEnvProfile = "dev" DefaultHTTPPort = "8080" DefaultSecureJSONPrefix = ")]}',\n" ProfilePrefix = "env." )
Constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { PhysicalPathMode bool PackagedMode bool ServerHeaderEnabled bool RequestIDEnabled bool SSLEnabled bool LetsEncryptEnabled bool GzipEnabled bool SecureHeadersEnabled bool AccessLogEnabled bool StaticAccessLogEnabled bool DumpLogEnabled bool Initialized bool HotReload bool HotReloadEnabled bool AuthSchemeExists bool Redirect bool Pid int HTTPMaxHdrBytes int ImportPath string BaseDir string VirtualBaseDir string Type string EnvProfile string SSLCert string SSLKey string ServerHeader string RequestIDHeaderKey string SecureJSONPrefix string ShutdownGraceTimeStr string DefaultContentType string HotReloadSignalStr string HTTPReadTimeout time.Duration HTTPWriteTimeout time.Duration ShutdownGraceTimeout time.Duration Autocert *autocert.Manager // contains filtered or unexported fields }
Settings represents parsed and inferred config values for the application.
func (*Settings) HotReloadSignal ¶
HotReloadSignal method returns type `os.Signal` based on config `runtime.config_hotreload.signal`. Default signal value is `SIGHUP`.
Note: `SIGUSR1`, `SIGUSR2` is not applicable to Windows OS.
func (*Settings) Refresh ¶
Refresh method to parse/infer config values and populate settings instance.
func (*Settings) SetImportPath ¶
SetImportPath method process import path and sets it into settings instance.
Click to show internal directories.
Click to hide internal directories.