application

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagsGlobalOption

func FlagsGlobalOption() []cli.Flag

FlagsGlobalOption 全局选项

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

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) GetName

func (app *Application) GetName() string

GetName 获取应用注册器名称

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 注册应用全局错误处理器

func (*Application) SetName

func (app *Application) SetName(name string)

SetName 设置应用注册器名称

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL