Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option struct {
Name string `json:"name"` // 应用程序名称
HTTP struct {
Host string `json:"host"` // 服务地址
Port string `json:"port"` // 服务端口
} `json:"http"`
Database *db.Config `json:"mysql"`
Logger *logger.Config `json:"logger"`
Environment string // prod, dev, test
}
Option for configurations
var Instance *Option
AppConfig is the configs for the whole application
Click to show internal directories.
Click to hide internal directories.