Documentation ¶
Index ¶
- func AfterProvider(bean interface{}, alias string)
- func EnvIsDev() bool
- func EnvIsLocal() bool
- func EnvIsProduction() bool
- func EnvIsStaging() bool
- func EnvIsTesting() bool
- func GetBean(alias string) interface{}
- func HasBean(alias string) bool
- func RunBoot()
- func RunExit()
- func SetEnvironment(env string)
- type AppendRun
- type Bean
- type Environment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterProvider ¶
func AfterProvider(bean interface{}, alias string)
AfterProvider 在 Initialize 函数后执行
func EnvIsLocal ¶
func EnvIsLocal() bool
func EnvIsProduction ¶
func EnvIsProduction() bool
func EnvIsStaging ¶
func EnvIsStaging() bool
func EnvIsTesting ¶
func EnvIsTesting() bool
func RunBoot ¶
func RunBoot()
RunBoot 所有的 Init() 执行后, 触发Boot() Boot() 、Init() 是倒叙执行, 被依赖的先执行 Boot() 如果是嵌套多个Bean, 可能被多次执行
func SetEnvironment ¶
func SetEnvironment(env string)
Types ¶
type Environment ¶
type Environment string
var ( EnvironmentNow Environment = "" EnvironmentLocal Environment = "local" EnvironmentDev Environment = "dev" EnvironmentTesting Environment = "testing" EnvironmentStaging Environment = "staging" EnvironmentProduction Environment = "production" )
func GetEnvironment ¶
func GetEnvironment() Environment
Click to show internal directories.
Click to hide internal directories.