Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapSyncSeparateAsync ¶ added in v0.13.12
func BootstrapSyncSeparateAsync(funcs ...func())
异步初始化,全部完成后同步返回
Types ¶
type Application ¶
type Application struct {
BootOptions BootstrapOptions
ServerOptions server.Options
Registry registry.IRegistry
Mq mq.IClient
Redis *redis.RedisClient
IdWorker *idworker.Worker
ConfigCenter config.IConfig
}
var MthApplication *Application
func (*Application) Bootstrap ¶ added in v0.5.1
func (app *Application) Bootstrap(options Options)
func (*Application) BootstrapAll ¶ added in v0.5.1
func (app *Application) BootstrapAll(options Options)
func (*Application) ShutDown ¶
func (app *Application) ShutDown()
func (*Application) StartLogger ¶
func (app *Application) StartLogger()
func (*Application) StartWebServer ¶
func (app *Application) StartWebServer(srv server.Server, gracefulShutDown ...func())
type BootstrapOptions ¶
Click to show internal directories.
Click to hide internal directories.