Documentation ¶
Index ¶
- func InitClickHouse() (fn func(), err error)
- func InitDebugSarama() (fn func(), err error)
- func InitKafkaAsyncProduce() (fn func(), err error)
- func InitKafkaSyncProduce() (fn func(), err error)
- func InitLogs() (fn func(), err error)
- func InitMysql() (fn func(), err error)
- func InitOpenWinBrowser() (fn func(), err error)
- func InitRbac() (fn func(), err error)
- func InitRedisPool() (fn func(), err error)
- func InitTask() (fn func(), err error)
- func RefreshTableId() (fn func(), err error)
- type App
- type InitFnObserver
- type NewAppOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDebugSarama ¶
func InitDebugSarama() (fn func(), err error)
func RefreshTableId ¶
func RefreshTableId() (fn func(), err error)
Types ¶
type App ¶
type App struct { InitFnObservers []InitFnObserver // contains filtered or unexported fields }
App 结构体 启动应用基本配置
func (*App) NotifyInitFnObservers ¶
func (*App) RunManager ¶
func (this *App) RunManager()
func (*App) WaitForExitSign ¶
func (this *App) WaitForExitSign(exitFunc ...func())
type InitFnObserver ¶
type InitFnObserver func() (deferFunc func(), err error)
type NewAppOptions ¶
type NewAppOptions func(app *App)
Options方法
func RegisterInitFnObserver ¶
func RegisterInitFnObserver(fn InitFnObserver) NewAppOptions
设置配置文件格式 例如:json,conf 等等
func WithConfigFileExt ¶
func WithConfigFileExt(configFileExt string) NewAppOptions
设置配置文件格式 例如:json,conf 等等
Click to show internal directories.
Click to hide internal directories.