Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectSoftwareConfig ¶
func InjectSoftwareConfig(s *SoftwareConfig)
func LoadSoftwareConfig ¶
func LoadSoftwareConfig() baseiface.ISingleton
Types ¶
type MicroConfig ¶
@Title 文件名称: MicroConfig.go @Description 描述: MicroConfig
@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)
type SoftwareConfig ¶
type SoftwareConfig struct {
baseconfig.BaseConfig
Env string `gocfg:"${software.env:dev}"`
WebPrefix string `gocfg:"${software.webPrefix}"`
Ver string `gocfg:"${software.ver}"`
Author string `gocfg:"${software.author}"`
Corp string `gocfg:"${software.corp}"`
LogLevel string `gocfg:"${software.logLevel}"`
ShopId int `gocfg:"${software.platform.shopId}"`
ProjectName string `gocfg:"${software.projectName}"`
}
func NewSoftwareConfig ¶
func NewSoftwareConfig() *SoftwareConfig
Click to show internal directories.
Click to hide internal directories.