Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultShutdownTimeout = 5 * time.Second
DefaultShutdownTimeout 优雅关闭的默认超时时间。 未配置 go.application.shutdownTimeout 或配置值非法(<=0)时使用该值, 与升级前硬编码的 5 秒保持一致,确保向后兼容。
Variables ¶
View Source
var Config = &config{}
Functions ¶
This section is empty.
Types ¶
type LogOutput ¶ added in v2.0.11
type LogOutput struct {
Target string `json:"target"`
Format string `json:"format"`
Fields []string `json:"fields"`
LogText string `json:"logtext"`
File string `json:"file"`
}
LogOutput configures one application log destination. External targets name a registered RecordHandler.
Click to show internal directories.
Click to hide internal directories.