Documentation ¶
Index ¶
- Variables
- type Application
- func (a *Application) Default(args ...interface{}) *Application
- func (a *Application) LoadLogger() *Application
- func (a *Application) LoadWithConfig(args ...interface{}) *Application
- func (a *Application) Populate() *Application
- func (a *Application) Run()
- func (a *Application) RunDefault(val interface{})
- func (a *Application) RunServices(val interface{})
- func (a *Application) RunWithCmd(fn ...func())
Constants ¶
This section is empty.
Variables ¶
View Source
var App = new(Application)
App ...
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Config *g2util.Config `inject:""` Logger g2util.LevelLogger `inject:""` Cron *g2util.G2cron `inject:""` G2cache *g2cache.Instance `inject:""` G2resty *g2util.RestyAgent `inject:""` AbFile *g2util.AbFile `inject:""` Graceful *g2util.Graceful `inject:""` Go *g2util.GoPool `inject:""` Gin *g2gin.G2gin `inject:""` G2cmd *g2cmd.G2cmd `inject:""` Mysql *g2db.Mysql `inject:""` Token *g2db.Token `inject:""` Captcha *g2util.Captcha `inject:""` Emq *g2emq.Emq `inject:""` // contains filtered or unexported fields }
Application ...
func (*Application) Default ¶
func (a *Application) Default(args ...interface{}) *Application
Default ...
func (*Application) LoadLogger ¶ added in v2.2.1
func (a *Application) LoadLogger() *Application
LoadLogger ...
func (*Application) LoadWithConfig ¶ added in v2.2.1
func (a *Application) LoadWithConfig(args ...interface{}) *Application
LoadWithConfig ...
func (*Application) RunDefault ¶ added in v2.0.4
func (a *Application) RunDefault(val interface{})
RunDefault ...
func (*Application) RunServices ¶ added in v2.0.3
func (a *Application) RunServices(val interface{})
RunServices ...
func (*Application) RunWithCmd ¶ added in v2.0.3
func (a *Application) RunWithCmd(fn ...func())
RunWithCmd ...
Click to show internal directories.
Click to hide internal directories.