Documentation ¶
Index ¶
- type Application
- func (app *Application) ShutDown()
- func (app *Application) StartConfigCenter()
- func (app *Application) StartDb()
- func (app *Application) StartLogger()
- func (app *Application) StartMq(serverUrl string, connectionTimeOut int64, operationTimeOut int64) *mq.Client
- func (app *Application) StartRedis() *redis.RedisClient
- func (app *Application) StartRegistry() registry.IRegistry
- func (app *Application) StartWebServer(routerProvider func(engine *gin.Engine))
- func (app *Application) StartWebServerWith(options server.Options, routerProvider func(engine *gin.Engine))
- type BootstrapOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { BootOptions BootstrapOptions ServerOptions server.Options Registry registry.IRegistry Mq *mq.Client Redis *redis.RedisClient IdWorker *utils.Worker ConfigCenter config.IConfig }
var MthApplication *Application
func BootstrapAll ¶
func BootstrapAll(reader io.Reader, fileType string) *Application
func (*Application) ShutDown ¶
func (app *Application) ShutDown()
func (*Application) StartConfigCenter ¶
func (app *Application) StartConfigCenter()
func (*Application) StartDb ¶
func (app *Application) StartDb()
func (*Application) StartLogger ¶
func (app *Application) StartLogger()
func (*Application) StartRedis ¶
func (app *Application) StartRedis() *redis.RedisClient
func (*Application) StartRegistry ¶
func (app *Application) StartRegistry() registry.IRegistry
func (*Application) StartWebServer ¶
func (app *Application) StartWebServer(routerProvider func(engine *gin.Engine))
func (*Application) StartWebServerWith ¶
func (app *Application) StartWebServerWith(options server.Options, routerProvider func(engine *gin.Engine))
Click to show internal directories.
Click to hide internal directories.