Documentation
¶
Index ¶
- func FlagsGlobalOption() []cli.Flag
- func NewApplication(ctx frame.ContextCommander) frame.ApplicationCmdRegister
- type Application
- func (app *Application) GetActionGlobalAction() func(*cli.Context) error
- func (app *Application) GetCacheKey() string
- func (app *Application) GetContext() frame.ContextCommander
- func (app *Application) GetDBKey() string
- func (app *Application) GetDBMongoKey() string
- func (app *Application) GetDBMysqlKey() string
- func (app *Application) GetDefaultJsonCodecKey() string
- func (app *Application) GetFastJsonCodecKey() string
- func (app *Application) GetFlagsGlobalOption() []cli.Flag
- func (app *Application) GetInstanceKey(flag frame.InstanceKeyFlag) frame.InstanceKey
- func (app *Application) GetLevel2CacheKey() string
- func (app *Application) GetLocalCacheKey() string
- func (app *Application) GetName() string
- func (app *Application) GetRedisKey() string
- func (app *Application) GetRemoteCacheKey() string
- func (app *Application) GetTaskDispatcherKey() string
- func (app *Application) GetTaskServerKey() string
- func (app *Application) RegisterApplicationGlobals()
- func (app *Application) RegisterCommands(core interface{})
- func (app *Application) RegisterCoreGlobalOptional(core interface{})
- func (app *Application) RegisterGlobalErrHandler(core interface{})
- func (app *Application) SetName(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplication ¶
func NewApplication(ctx frame.ContextCommander) frame.ApplicationCmdRegister
Types ¶
type Application ¶
type Application struct {
Ctx frame.ContextCommander
// contains filtered or unexported fields
}
Application 定义应用对象,实现 frame.ApplicationCmdRegister 接口
func (*Application) GetActionGlobalAction ¶
func (app *Application) GetActionGlobalAction() func(*cli.Context) error
func (*Application) GetCacheKey ¶
func (app *Application) GetCacheKey() string
func (*Application) GetContext ¶
func (app *Application) GetContext() frame.ContextCommander
GetContext 获取应用上下文对象
func (*Application) GetDBKey ¶
func (app *Application) GetDBKey() string
func (*Application) GetDBMongoKey ¶
func (app *Application) GetDBMongoKey() string
func (*Application) GetDBMysqlKey ¶
func (app *Application) GetDBMysqlKey() string
func (*Application) GetDefaultJsonCodecKey ¶
func (app *Application) GetDefaultJsonCodecKey() string
func (*Application) GetFastJsonCodecKey ¶
func (app *Application) GetFastJsonCodecKey() string
func (*Application) GetFlagsGlobalOption ¶
func (app *Application) GetFlagsGlobalOption() []cli.Flag
func (*Application) GetInstanceKey ¶
func (app *Application) GetInstanceKey(flag frame.InstanceKeyFlag) frame.InstanceKey
func (*Application) GetLevel2CacheKey ¶
func (app *Application) GetLevel2CacheKey() string
func (*Application) GetLocalCacheKey ¶
func (app *Application) GetLocalCacheKey() string
func (*Application) GetRedisKey ¶
func (app *Application) GetRedisKey() string
func (*Application) GetRemoteCacheKey ¶
func (app *Application) GetRemoteCacheKey() string
func (*Application) GetTaskDispatcherKey ¶
func (app *Application) GetTaskDispatcherKey() string
func (*Application) GetTaskServerKey ¶
func (app *Application) GetTaskServerKey() string
func (*Application) RegisterApplicationGlobals ¶
func (app *Application) RegisterApplicationGlobals()
RegisterApplicationGlobals 注册应用全局相关处理逻辑
func (*Application) RegisterCommands ¶
func (app *Application) RegisterCommands(core interface{})
RegisterCommands 注册应用命令行命令列表
func (*Application) RegisterCoreGlobalOptional ¶
func (app *Application) RegisterCoreGlobalOptional(core interface{})
RegisterCoreGlobalOptional 注册应用全局可选处理逻辑
func (*Application) RegisterGlobalErrHandler ¶
func (app *Application) RegisterGlobalErrHandler(core interface{})
RegisterGlobalErrHandler 注册应用全局错误处理器
Click to show internal directories.
Click to hide internal directories.