application

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 13 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 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) 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