Documentation
¶
Index ¶
- func FlagsGlobalOption() []cli.Flag
- func NewApplication(ctx fiberhouse.ICommandContext) fiberhouse.ApplicationCmdRegister
- type Application
- func (app *Application) GetActionGlobalAction() func(*cli.Context) error
- func (app *Application) GetCacheKey() string
- func (app *Application) GetContext() fiberhouse.ICommandContext
- func (app *Application) GetDBKey() string
- func (app *Application) GetDBMongoKey() string
- func (app *Application) GetDBMysqlKey() string
- func (app *Application) GetDefaultTrafficCodecKey() string
- func (app *Application) GetFastTrafficCodecKey() string
- func (app *Application) GetFlagsGlobalOption() []cli.Flag
- func (app *Application) GetKey(keyFlag fiberhouse.InstanceKeyFlag) (fiberhouse.InstanceKey, error)
- func (app *Application) GetLevel2CacheKey() string
- func (app *Application) GetLocalCacheKey() string
- func (app *Application) GetMustKey(keyFlag fiberhouse.InstanceKeyFlag) fiberhouse.InstanceKey
- 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 fiberhouse.ICommandContext) fiberhouse.ApplicationCmdRegister
Types ¶
type Application ¶
type Application struct {
Ctx fiberhouse.ICommandContext
// contains filtered or unexported fields
}
Application 定义应用对象,实现 fiberhouse.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() fiberhouse.ICommandContext
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) GetDefaultTrafficCodecKey ¶ added in v1.0.0
func (app *Application) GetDefaultTrafficCodecKey() string
func (*Application) GetFastTrafficCodecKey ¶ added in v1.0.0
func (app *Application) GetFastTrafficCodecKey() string
func (*Application) GetFlagsGlobalOption ¶
func (app *Application) GetFlagsGlobalOption() []cli.Flag
func (*Application) GetKey ¶ added in v1.0.0
func (app *Application) GetKey(keyFlag fiberhouse.InstanceKeyFlag) (fiberhouse.InstanceKey, error)
GetKey 获取除框架预定义实例key外的由用户自定义标识映射的实例key
func (*Application) GetLevel2CacheKey ¶
func (app *Application) GetLevel2CacheKey() string
func (*Application) GetLocalCacheKey ¶
func (app *Application) GetLocalCacheKey() string
func (*Application) GetMustKey ¶ added in v1.0.0
func (app *Application) GetMustKey(keyFlag fiberhouse.InstanceKeyFlag) fiberhouse.InstanceKey
GetMustKey 获取除框架预定义实例key外的由用户自定义标识映射的实例key,未找到则panic
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.