Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SettingModule = fx.Provide( func() (out AppResult, err error) { err = out.loadFromEnv() return }, )
SettingModule is a module that provides the application settings.
Functions ¶
This section is empty.
Types ¶
type AppResult ¶
type AppResult struct { fx.Out AppName string `name:"AppName" envconfig:"APP_NAME" default:"app"` AppId string `name:"AppId" envconfig:"APP_ID" default:"app"` Deployment string `name:"Deployment" envconfig:"DEPLOYMENT" default:"local"` Version string `name:"Version" envconfig:"VERSION" default:"0.0.1"` }
Click to show internal directories.
Click to hide internal directories.